diff options
Diffstat (limited to 'base')
| -rw-r--r-- | base/src/main/java/bjc/utils/ioutils/SimpleProperties.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/base/src/main/java/bjc/utils/ioutils/SimpleProperties.java b/base/src/main/java/bjc/utils/ioutils/SimpleProperties.java index 7043ed2..4f41c50 100644 --- a/base/src/main/java/bjc/utils/ioutils/SimpleProperties.java +++ b/base/src/main/java/bjc/utils/ioutils/SimpleProperties.java @@ -29,7 +29,7 @@ public class SimpleProperties implements Map<String, String> { * * The format is the name, a space, then the body. * - * All leading/trailing spaces from the name & body are removed. + * All leading/trailing spaces from the name & body are removed. * * @param is * The stream to read from. @@ -45,10 +45,7 @@ public class SimpleProperties implements Map<String, String> { /* * Skip blank lines/comments */ - if(ln.equals("")) { - continue; - } - if(ln.startsWith("#")) { + if(ln.equals("") || ln.startsWith("#")) { continue; } |
