From 3a55bd1b5e6fe6fd859d91c33e20e1bbc59b5b6f Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 30 Aug 2005 11:00:50 +0000 Subject: [PATCH] * Simplify some boolean statements. --- src/helma/doc/DocElement.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/helma/doc/DocElement.java b/src/helma/doc/DocElement.java index 2d08da58..32c550ec 100644 --- a/src/helma/doc/DocElement.java +++ b/src/helma/doc/DocElement.java @@ -60,7 +60,7 @@ public abstract class DocElement implements IPathElement { protected DocElement(String name, File location, int type) throws DocException { - if (location.exists() == false) { + if (!location.exists()) { throw new DocException(name + " not found in " + location.toString()); } @@ -204,7 +204,7 @@ public abstract class DocElement implements IPathElement { if ("".equals(line)) { // if we've already had text, store that this line was empty - lastEmpty = (mode != BLANK) ? true : false; + lastEmpty = (mode != BLANK); continue; } @@ -230,7 +230,7 @@ public abstract class DocElement implements IPathElement { } // append to current buffer - if (lastEmpty == true) { + if (lastEmpty) { buf.append("\n"); }