Fixed bad format property line management.
This commit is contained in:
parent
186244c18f
commit
e95dc5f0c8
2 changed files with 2 additions and 2 deletions
|
@ -208,7 +208,7 @@ public class PropertyChecker
|
|||
{
|
||||
String line = iterator.next();
|
||||
|
||||
if ((!StringUtils.isBlank(line)) && (!line.startsWith("#")))
|
||||
if ((!StringUtils.isBlank(line)) && (!line.startsWith("#")) && (line.contains("=")))
|
||||
{
|
||||
String[] tokens = line.split("=", 2);
|
||||
PathProperty property = new PathProperty(tokens[0].trim(), tokens[1].trim());
|
||||
|
|
|
@ -235,7 +235,7 @@ public class PathPropertyUtils
|
|||
ended = true;
|
||||
result = null;
|
||||
}
|
||||
else if ((StringUtils.isNotBlank(line)) && (!line.startsWith("#")))
|
||||
else if ((StringUtils.isNotBlank(line)) && (!line.startsWith("#")) && (line.contains("=")))
|
||||
{
|
||||
ended = true;
|
||||
result = line;
|
||||
|
|
Loading…
Reference in a new issue