Commit bd3f5371 by Mark Wielaard Committed by Mark Wielaard

Properties.java (load): Only skip line if the first character is a comment,…

Properties.java (load): Only skip line if the first character is a comment, whitespaces don't count.

       * java/util/Properties.java (load): Only skip line if the first
       character is a comment, whitespaces don't count.

From-SVN: r63700
parent 3595b91f
2003-03-02 Mark Wielaard <mark@klomp.org>
* java/util/Properties.java (load): Only skip line if the first
character is a comment, whitespaces don't count.
2003-03-02 Michael Koch <konqueror@gmx.de>
* java/net/NetPermission.java:
......
......@@ -188,13 +188,17 @@ label = Name:\\u0020</pre>
{
char c = 0;
int pos = 0;
// If empty line or begins with a comment character, skip this line.
if (line.length() == 0
|| line.charAt(0) == '#' || line.charAt(0) == '!')
continue;
while (pos < line.length()
&& Character.isWhitespace(c = line.charAt(pos)))
pos++;
// If line is empty or begins with a comment character,
// skip this line.
if (pos == line.length() || c == '#' || c == '!')
// If line is empty skip this line.
if (pos == line.length())
continue;
// The characters up to the next Whitespace, ':', or '='
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment