* Simplify some boolean statements.

This commit is contained in:
hns 2005-08-30 11:00:50 +00:00
parent 9f8774adc7
commit 3a55bd1b5e

View file

@ -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");
} }