diff options
author | Michael Koch <konqueror@gmx.de> | 2004-04-21 07:25:14 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2004-04-21 07:25:14 +0000 |
commit | ca17d211e8f6450340aa394e90ecbba4d9bcab03 (patch) | |
tree | 2d017898a136ebc3ab9c92efa7fd1e979468026f /libjava/java | |
parent | 60e957d071f9ff4e41cf93088aaf18fcbe2dfa92 (diff) | |
download | gcc-ca17d211e8f6450340aa394e90ecbba4d9bcab03.zip gcc-ca17d211e8f6450340aa394e90ecbba4d9bcab03.tar.gz gcc-ca17d211e8f6450340aa394e90ecbba4d9bcab03.tar.bz2 |
2004-04-21 Michael Koch <konqueror@gmx.de>
* java/util/Properties.java
(load): Fix wrongly merged fix.
From-SVN: r80949
Diffstat (limited to 'libjava/java')
-rw-r--r-- | libjava/java/util/Properties.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/java/util/Properties.java b/libjava/java/util/Properties.java index 8f0cbab..921d55c 100644 --- a/libjava/java/util/Properties.java +++ b/libjava/java/util/Properties.java @@ -194,8 +194,8 @@ label = Name:\\u0020</pre> pos++; // If empty line or begins with a comment character, skip this line. - if (line.length() == 0 - || line.charAt(0) == '#' || line.charAt(0) == '!') + if ((line.length() - pos) == 0 + || line.charAt(pos) == '#' || line.charAt(pos) == '!') continue; // The characters up to the next Whitespace, ':', or '=' |