diff options
author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-20 16:14:25 +0000 |
---|---|---|
committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-20 16:14:25 +0000 |
commit | 644789d4bbae7b5df40b718466ac5a8697292757 (patch) | |
tree | 454cb44303514e8bdff5ab657943c3b093d1d468 /libjava/java/util/Properties.java | |
parent | 9ca30d10235e1ab3f4150a2c293e707da39aec70 (diff) | |
download | ppe42-gcc-644789d4bbae7b5df40b718466ac5a8697292757.tar.gz ppe42-gcc-644789d4bbae7b5df40b718466ac5a8697292757.zip |
2004-04-20 Jeroen Frijters <jeroen@frijters.net>
* java/text/DecimalFormat.java (scanFix): Removed suffix check
for percent and permill check.
2004-04-20 Guilhem Lavaux <guilhem@kaffe.org>
* java/text/FieldPosition.java
(FieldPosition) Constructor now behaves as it should according
to the java documentation.
2004-04-20 Mark Wielaard <mark@klomp.org>
* java/util/Properties.java: Use the word umlaut, not ä in api
documentation.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80910 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/util/Properties.java')
-rw-r--r-- | libjava/java/util/Properties.java | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/libjava/java/util/Properties.java b/libjava/java/util/Properties.java index 2f4428958d4..8f0cbab385d 100644 --- a/libjava/java/util/Properties.java +++ b/libjava/java/util/Properties.java @@ -188,17 +188,14 @@ 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; - + // Leading whitespaces must be deleted first. while (pos < line.length() && Character.isWhitespace(c = line.charAt(pos))) pos++; - // If line is empty skip this line. - if (pos == line.length()) + // If empty line or begins with a comment character, skip this line. + if (line.length() == 0 + || line.charAt(0) == '#' || line.charAt(0) == '!') continue; // The characters up to the next Whitespace, ':', or '=' |