summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Jones <cbj@gnu.org>2003-01-25 23:14:08 +0000
committerBrian Jones <cbj@gnu.org>2003-01-25 23:14:08 +0000
commit612fefc249d4c698dd22f3760f2caa513e19e2cd (patch)
treefe34772d1eba4c2a78eeddd1671179282a4ca1f8
parent5684576cbf115e647cd10b8198e1d05dd349119b (diff)
downloadclasspath-612fefc249d4c698dd22f3760f2caa513e19e2cd.tar.gz
* java/text/CollationElementIterator.java (secondaryOrder): return value
is supposed to be a short instead of an int; merged with gcj (tertiaryOrder): ditto (primaryOrder): merged with gcj
-rw-r--r--ChangeLog10
-rw-r--r--java/text/CollationElementIterator.java18
2 files changed, 18 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index 4eec10500..ae4a3ec87 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,16 @@
+2003-01-25 C. Brian Jones <cbj@gnu.org>
+
+ * java/text/CollationElementIterator.java (secondaryOrder): return
+ value is supposed to be a short instead of an int; merged with gcj
+ (tertiaryOrder): ditto
+ (primaryOrder): merged with gcj
+
2003-01-25 Stephen Crawley <crawley@dstc.edu.au>
* java/math/BigDecimal.java (BigDecimal): enhance parsing of exponents
(toString): do not return Strings starting with . and - erroneously.
- Improves Mauve results to 12 of 600 instead of 16 of 338 on DiagBigDecimal.
+ Improves Mauve results to 12 of 600 instead of 16 of 338 on
+ DiagBigDecimal.
2003-01-25 C. Brian Jones <cbj@gnu.org>
diff --git a/java/text/CollationElementIterator.java b/java/text/CollationElementIterator.java
index d528d92a1..75c24a2ca 100644
--- a/java/text/CollationElementIterator.java
+++ b/java/text/CollationElementIterator.java
@@ -96,10 +96,10 @@ private int pos;
*
* @return The primary order value of the specified collation value. This is the high 16 bits.
*/
-public static final int
-primaryOrder(int value)
+public static final int primaryOrder (int order)
{
- return((int)((value & 0xFFFF0000L) >> 16));
+ // From the JDK 1.2 spec.
+ return order >>> 16;
}
/*************************************************************************/
@@ -112,10 +112,10 @@ primaryOrder(int value)
*
* @return The secondary order value of the specified collation value. This is the bits 8-15.
*/
-public static final int
-secondaryOrder(int value)
+public static final short secondaryOrder (int order)
{
- return((value & 0xFF00) >> 8);
+ // From the JDK 1.2 spec.
+ return (short) ((order >>> 8) & 255);
}
/*************************************************************************/
@@ -128,10 +128,10 @@ secondaryOrder(int value)
*
* @return The tertiary order value of the specified collation value. This is the low eight bits.
*/
-public static final int
-tertiaryOrder(int value)
+public static final short tertiaryOrder (int order)
{
- return(value & 0xFF);
+ // From the JDK 1.2 spec.
+ return (short) (order & 255);
}
/*************************************************************************/