* 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
+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.
+
2004-04-20 Michael Koch <konqueror@gmx.de>
* java/nio/Buffer.java,
else
buf.append(syms.getCurrencySymbol());
}
- else if (is_suffix && c == syms.getPercent())
+ else if (c == syms.getPercent())
{
if (multiplierSet)
throw new IllegalArgumentException ("multiplier already set " +
multiplier = 100;
buf.append(c);
}
- else if (is_suffix && c == syms.getPerMill())
+ else if (c == syms.getPerMill())
{
if (multiplierSet)
throw new IllegalArgumentException ("multiplier already set " +
/**
* This method initializes a new instance of <code>FieldPosition</code>
* to have the specified field attribute. The attribute will be used as
- * an id.
+ * an id. It is formally equivalent to calling FieldPosition(field, -1).
*
* @param field The field format attribute.
*/
public FieldPosition (Format.Field field)
{
- this.field_attribute = field;
+ this(field, -1);
}
/**
{
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 '='