* Simplify some boolean statements.
This commit is contained in:
parent
9f8774adc7
commit
3a55bd1b5e
1 changed files with 3 additions and 3 deletions
|
@ -60,7 +60,7 @@ public abstract class DocElement implements IPathElement {
|
||||||
|
|
||||||
protected DocElement(String name, File location, int type)
|
protected DocElement(String name, File location, int type)
|
||||||
throws DocException {
|
throws DocException {
|
||||||
if (location.exists() == false) {
|
if (!location.exists()) {
|
||||||
throw new DocException(name + " not found in " + location.toString());
|
throw new DocException(name + " not found in " + location.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -204,7 +204,7 @@ public abstract class DocElement implements IPathElement {
|
||||||
|
|
||||||
if ("".equals(line)) {
|
if ("".equals(line)) {
|
||||||
// if we've already had text, store that this line was empty
|
// if we've already had text, store that this line was empty
|
||||||
lastEmpty = (mode != BLANK) ? true : false;
|
lastEmpty = (mode != BLANK);
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -230,7 +230,7 @@ public abstract class DocElement implements IPathElement {
|
||||||
}
|
}
|
||||||
|
|
||||||
// append to current buffer
|
// append to current buffer
|
||||||
if (lastEmpty == true) {
|
if (lastEmpty) {
|
||||||
buf.append("\n");
|
buf.append("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue