From 391d8ef5e0f2ad2a8be72b12e837386f3ac2b730 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Tue, 20 Apr 2004 16:14:25 +0000 Subject: [multiple changes] 2004-04-20 Jeroen Frijters * java/text/DecimalFormat.java (scanFix): Removed suffix check for percent and permill check. 2004-04-20 Guilhem Lavaux * java/text/FieldPosition.java (FieldPosition) Constructor now behaves as it should according to the java documentation. 2004-04-20 Mark Wielaard * java/util/Properties.java: Use the word umlaut, not ä in api documentation. From-SVN: r80910 --- libjava/java/util/Properties.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'libjava/java/util/Properties.java') 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 { 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 '=' -- cgit v1.2.3