2003-06-19 Michael Koch <konqueror@gmx.de>
authorMichael Koch <konqueror@gmx.de>
Thu, 19 Jun 2003 15:13:31 +0000 (15:13 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Thu, 19 Jun 2003 15:13:31 +0000 (15:13 +0000)
* java/text/CollationElementIterator.java
(NULLORDER): Initialize with -1 as JDK documentation says.

From-SVN: r68199

libjava/ChangeLog
libjava/java/text/CollationElementIterator.java

index 245e855aec672e9749c9fede48544d44ded45053..d85f3a3acfbf272e9ca18447a46d87afb59ea706 100644 (file)
@@ -1,3 +1,8 @@
+2003-06-19  Michael Koch  <konqueror@gmx.de>
+
+       * java/text/CollationElementIterator.java
+       (NULLORDER): Initialize with -1 as JDK documentation says.
+
 2003-06-19  Michael Koch  <konqueror@gmx.de>
 
        * java/net/HttpURLConnection.java,
index ba60f205f3c5bd3d843d0f5b9c9c211c15d03a7c..94c65005e8fd6da3468804d5e281befde1bfc0d9 100644 (file)
@@ -1,6 +1,6 @@
 /* CollationElementIterator.java -- Walks through collation elements
+   Copyright (C) 1998, 1999, 2001, 2002, 2003  Free Software Foundation
 
-/* Copyright (C) 1999, 2001  Free Software Foundation
 This file is part of GNU Classpath.
 
 GNU Classpath is free software; you can redistribute it and/or modify
@@ -60,7 +60,7 @@ public final class CollationElementIterator
    * This is a constant value that is returned to indicate that the end of 
    * the string was encountered.
    */
-  public static final int NULLORDER = 0xffffffff;
+  public static final int NULLORDER = -1;
 
   /**
    * This is the RuleBasedCollator this object was created from.
@@ -92,6 +92,7 @@ public final class CollationElementIterator
   {
     if (index == text.length())
       return NULLORDER;
+
     return collator.ceiNext(this);
   }