diff options
author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-22 17:14:29 +0000 |
---|---|---|
committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-22 17:14:29 +0000 |
commit | d5a51bb3e23d43b2a4dfc4a0f4b1ce8b89aa9d46 (patch) | |
tree | 81b31b0486891970a421212090c68947039d0701 /libjava/java/text | |
parent | dac49aa5c53ad15cdab5f898160dbe72708c98d3 (diff) | |
download | ppe42-gcc-d5a51bb3e23d43b2a4dfc4a0f4b1ce8b89aa9d46.tar.gz ppe42-gcc-d5a51bb3e23d43b2a4dfc4a0f4b1ce8b89aa9d46.zip |
2004-10-22 Michael Koch <konqueror@gmx.de>
* java/lang/Math.java
* java/lang/StackTraceElement.java
* java/nio/Buffer.java
* java/nio/ByteBuffer.java
* java/nio/CharBuffer.java
* java/nio/DoubleBuffer.java
* java/nio/FloatBuffer.java
* java/nio/IntBuffer.java
* java/nio/LongBuffer.java
* java/nio/ShortBuffer.java
* java/nio/charset/Charset.java
* java/rmi/server/RMIClassLoader.java
* java/rmi/server/RMISocketFactory.java
* java/security/Policy.java
* java/text/ChoiceFormat.java
* java/text/CollationElementIterator.java
* java/text/DateFormat.java
* java/text/DecimalFormat.java
* java/text/DecimalFormatSymbols.java
* java/text/MessageFormat.java
* java/text/NumberFormat.java
* java/text/RuleBasedCollator.java
* java/text/SimpleDateFormat.java
* java/util/BitSet.java
* java/util/Calendar.java
* java/util/Collections.java
* java/util/IdentityHashMap.java
* java/util/Locale.java
* java/util/TreeMap.java
* java/util/logging/LogRecord.java
* java/util/logging/XMLFormatter.java
* java/util/prefs/AbstractPreferences.java
* java/util/prefs/Preferences.java
* javax/crypto/interfaces/DHPrivateKey.java
* javax/crypto/interfaces/DHPublicKey.java
* javax/crypto/interfaces/PBEKey.java
* javax/net/ssl/HandshakeCompletedEvent.java
* javax/security/auth/Subject.java
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89454 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/text')
-rw-r--r-- | libjava/java/text/ChoiceFormat.java | 5 | ||||
-rw-r--r-- | libjava/java/text/CollationElementIterator.java | 6 | ||||
-rw-r--r-- | libjava/java/text/DateFormat.java | 13 | ||||
-rw-r--r-- | libjava/java/text/DecimalFormat.java | 24 | ||||
-rw-r--r-- | libjava/java/text/DecimalFormatSymbols.java | 8 | ||||
-rw-r--r-- | libjava/java/text/MessageFormat.java | 13 | ||||
-rw-r--r-- | libjava/java/text/NumberFormat.java | 5 | ||||
-rw-r--r-- | libjava/java/text/RuleBasedCollator.java | 6 | ||||
-rw-r--r-- | libjava/java/text/SimpleDateFormat.java | 7 |
9 files changed, 40 insertions, 47 deletions
diff --git a/libjava/java/text/ChoiceFormat.java b/libjava/java/text/ChoiceFormat.java index f23bd128a5e..ff3c9f667d9 100644 --- a/libjava/java/text/ChoiceFormat.java +++ b/libjava/java/text/ChoiceFormat.java @@ -1,5 +1,6 @@ /* ChoiceFormat.java -- Format over a range of numbers - Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004 + Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -440,7 +441,7 @@ public class ChoiceFormat extends NumberFormat this.choiceLimits = (double[]) choiceLimits.clone(); } - private final void quoteString (StringBuffer dest, String text) + private void quoteString (StringBuffer dest, String text) { int max = text.length(); for (int i = 0; i < max; ++i) diff --git a/libjava/java/text/CollationElementIterator.java b/libjava/java/text/CollationElementIterator.java index 90091e34884..91f341f55b2 100644 --- a/libjava/java/text/CollationElementIterator.java +++ b/libjava/java/text/CollationElementIterator.java @@ -181,7 +181,7 @@ public final class CollationElementIterator * * @return The primary order value of the specified collation value. This is the high 16 bits. */ - public static final int primaryOrder(int order) + public static int primaryOrder(int order) { // From the JDK 1.2 spec. return order >>> 16; @@ -205,7 +205,7 @@ public final class CollationElementIterator * * @return The secondary order value of the specified collation value. This is the bits 8-15. */ - public static final short secondaryOrder(int order) + public static short secondaryOrder(int order) { // From the JDK 1.2 spec. return (short) ((order >>> 8) & 255); @@ -219,7 +219,7 @@ public final class CollationElementIterator * * @return The tertiary order value of the specified collation value. This is the low eight bits. */ - public static final short tertiaryOrder(int order) + public static short tertiaryOrder(int order) { // From the JDK 1.2 spec. return (short) (order & 255); diff --git a/libjava/java/text/DateFormat.java b/libjava/java/text/DateFormat.java index c0ca73794e6..8b705663d68 100644 --- a/libjava/java/text/DateFormat.java +++ b/libjava/java/text/DateFormat.java @@ -309,18 +309,15 @@ public abstract class DateFormat extends Format implements Cloneable return calendar; } - private static final DateFormat computeInstance (int style, Locale loc, - boolean use_date, - boolean use_time) + private static DateFormat computeInstance (int style, Locale loc, + boolean use_date, boolean use_time) { return computeInstance (style, style, loc, use_date, use_time); } - private static final DateFormat computeInstance (int dateStyle, - int timeStyle, - Locale loc, - boolean use_date, - boolean use_time) + private static DateFormat computeInstance (int dateStyle, int timeStyle, + Locale loc, boolean use_date, + boolean use_time) { ResourceBundle res; try diff --git a/libjava/java/text/DecimalFormat.java b/libjava/java/text/DecimalFormat.java index eda4d043740..94487c80204 100644 --- a/libjava/java/text/DecimalFormat.java +++ b/libjava/java/text/DecimalFormat.java @@ -1,5 +1,5 @@ /* DecimalFormat.java -- Formats and parses numbers - Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation, Inc. + Copyright (C) 1999, 2000, 2001, 2003, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -62,9 +62,9 @@ public class DecimalFormat extends NumberFormat { // This is a helper for applyPatternWithSymbols. It reads a prefix // or a suffix. It can cause some side-effects. - private final int scanFix (String pattern, int index, FormatBuffer buf, - String patChars, DecimalFormatSymbols syms, - boolean is_suffix) + private int scanFix (String pattern, int index, FormatBuffer buf, + String patChars, DecimalFormatSymbols syms, + boolean is_suffix) { int len = pattern.length(); boolean quoteStarted = false; @@ -140,9 +140,8 @@ public class DecimalFormat extends NumberFormat } // A helper which reads a number format. - private final int scanFormat (String pattern, int index, - String patChars, DecimalFormatSymbols syms, - boolean is_positive) + private int scanFormat (String pattern, int index, String patChars, + DecimalFormatSymbols syms, boolean is_positive) { int max = pattern.length(); @@ -294,7 +293,7 @@ public class DecimalFormat extends NumberFormat // This helper function creates a string consisting of all the // characters which can appear in a pattern and must be quoted. - private final String patternChars (DecimalFormatSymbols syms) + private String patternChars (DecimalFormatSymbols syms) { StringBuffer buf = new StringBuffer (); buf.append(syms.getDecimalSeparator()); @@ -313,8 +312,7 @@ public class DecimalFormat extends NumberFormat return buf.toString(); } - private final void applyPatternWithSymbols (String pattern, - DecimalFormatSymbols syms) + private void applyPatternWithSymbols(String pattern, DecimalFormatSymbols syms) { // Initialize to the state the parser expects. negativePrefix = ""; @@ -425,7 +423,7 @@ public class DecimalFormat extends NumberFormat applyPattern (pattern); } - private final boolean equals (String s1, String s2) + private boolean equals(String s1, String s2) { if (s1 == null || s2 == null) return s1 == s2; @@ -1149,7 +1147,7 @@ public class DecimalFormat extends NumberFormat positiveSuffix = newValue; } - private final void quoteFix (StringBuffer buf, String text, String patChars) + private void quoteFix(StringBuffer buf, String text, String patChars) { int len = text.length(); for (int index = 0; index < len; ++index) @@ -1166,7 +1164,7 @@ public class DecimalFormat extends NumberFormat } } - private final String computePattern (DecimalFormatSymbols syms) + private String computePattern(DecimalFormatSymbols syms) { StringBuffer mainPattern = new StringBuffer (); // We have to at least emit a zero for the minimum number of diff --git a/libjava/java/text/DecimalFormatSymbols.java b/libjava/java/text/DecimalFormatSymbols.java index be045857188..7a4e56e9a42 100644 --- a/libjava/java/text/DecimalFormatSymbols.java +++ b/libjava/java/text/DecimalFormatSymbols.java @@ -83,8 +83,8 @@ public final class DecimalFormatSymbols implements Cloneable, Serializable this (Locale.getDefault()); } - private final String safeGetString (ResourceBundle bundle, - String name, String def) + private String safeGetString(ResourceBundle bundle, + String name, String def) { if (bundle != null) { @@ -99,8 +99,8 @@ public final class DecimalFormatSymbols implements Cloneable, Serializable return def; } - private final char safeGetChar (ResourceBundle bundle, - String name, char def) + private char safeGetChar(ResourceBundle bundle, + String name, char def) { String r = null; if (bundle != null) diff --git a/libjava/java/text/MessageFormat.java b/libjava/java/text/MessageFormat.java index 1c681795fa1..0d689413480 100644 --- a/libjava/java/text/MessageFormat.java +++ b/libjava/java/text/MessageFormat.java @@ -189,8 +189,7 @@ public class MessageFormat extends Format // Helper that returns the text up to the next format opener. The // text is put into BUFFER. Returns index of character after end of // string. Throws IllegalArgumentException on error. - private static final int scanString (String pat, int index, - StringBuffer buffer) + private static int scanString(String pat, int index, StringBuffer buffer) { int max = pat.length(); buffer.setLength(0); @@ -220,9 +219,8 @@ public class MessageFormat extends Format // This helper retrieves a single part of a format element. Returns // the index of the terminating character. - private static final int scanFormatElement (String pat, int index, - StringBuffer buffer, - char term) + private static int scanFormatElement(String pat, int index, + StringBuffer buffer, char term) { int max = pat.length(); buffer.setLength(0); @@ -266,9 +264,8 @@ public class MessageFormat extends Format // This is used to parse a format element and whatever non-format // text might trail it. - private static final int scanFormat (String pat, int index, - StringBuffer buffer, Vector elts, - Locale locale) + private static int scanFormat(String pat, int index, StringBuffer buffer, + Vector elts, Locale locale) { MessageFormatElement mfe = new MessageFormatElement (); elts.addElement(mfe); diff --git a/libjava/java/text/NumberFormat.java b/libjava/java/text/NumberFormat.java index 00d3030f0ee..368292686bc 100644 --- a/libjava/java/text/NumberFormat.java +++ b/libjava/java/text/NumberFormat.java @@ -302,9 +302,8 @@ public abstract class NumberFormat extends Format implements Cloneable return list; } - private static final NumberFormat computeInstance (Locale loc, - String resource, - String def) + private static NumberFormat computeInstance(Locale loc, String resource, + String def) { ResourceBundle res; try diff --git a/libjava/java/text/RuleBasedCollator.java b/libjava/java/text/RuleBasedCollator.java index 8b7fe16ac78..c2cff5a0c8c 100644 --- a/libjava/java/text/RuleBasedCollator.java +++ b/libjava/java/text/RuleBasedCollator.java @@ -147,7 +147,7 @@ public class RuleBasedCollator extends Collator * This class describes what rank has a character (or a sequence of characters) * in the lexicographic order. Each element in a rule has a collation element. */ - final static class CollationElement + static final class CollationElement { String key; int primary; @@ -169,7 +169,7 @@ public class RuleBasedCollator extends Collator this.expansion = expansion; } - final int getValue() + int getValue() { return (primary << 16) + (secondary << 8) + tertiary; } @@ -183,7 +183,7 @@ public class RuleBasedCollator extends Collator * {@link #mergeRules(int,java.lang.String,java.util.ArrayList,java.util.ArrayList)}) * as a temporary state while merging two sets of instructions. */ - final static class CollationSorter + static final class CollationSorter { static final int GREATERP = 0; static final int GREATERS = 1; diff --git a/libjava/java/text/SimpleDateFormat.java b/libjava/java/text/SimpleDateFormat.java index ea3e09fab46..35083eb887e 100644 --- a/libjava/java/text/SimpleDateFormat.java +++ b/libjava/java/text/SimpleDateFormat.java @@ -1,6 +1,7 @@ /* SimpleDateFormat.java -- A class for parsing/formating simple date constructs - Copyright (C) 1998, 1999, 2000, 2001, 2003 Free Software Foundation, Inc. + Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004 + Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -419,7 +420,7 @@ public class SimpleDateFormat extends DateFormat * appending to the specified StringBuffer. The input StringBuffer * is returned as output for convenience. */ - final private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) + private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; @@ -584,7 +585,7 @@ public class SimpleDateFormat extends DateFormat buffer.append(valStr); } - private final boolean expect (String source, ParsePosition pos, char ch) + private boolean expect(String source, ParsePosition pos, char ch) { int x = pos.getIndex(); boolean r = x < source.length() && source.charAt(x) == ch; |