harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r1002169 - /harmony/enhanced/java/branches/java6/classlib/modules/text/src/main/java/java/text/CollationKey.java
Date Tue, 28 Sep 2010 14:17:03 GMT
Author: odeakin
Date: Tue Sep 28 14:17:02 2010
New Revision: 1002169

URL: http://svn.apache.org/viewvc?rev=1002169&view=rev
Log:
Add missing spec'ed constructor.

Modified:
    harmony/enhanced/java/branches/java6/classlib/modules/text/src/main/java/java/text/CollationKey.java

Modified: harmony/enhanced/java/branches/java6/classlib/modules/text/src/main/java/java/text/CollationKey.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/text/src/main/java/java/text/CollationKey.java?rev=1002169&r1=1002168&r2=1002169&view=diff
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/text/src/main/java/java/text/CollationKey.java
(original)
+++ harmony/enhanced/java/branches/java6/classlib/modules/text/src/main/java/java/text/CollationKey.java
Tue Sep 28 14:17:02 2010
@@ -89,6 +89,14 @@ public class CollationKey implements Com
         this.icuKey = key;
     }
 
+    protected CollationKey(String source) {
+        if (source == null) {
+            throw new NullPointerException("Specified source is null");
+        }
+        this.source = source;
+        icuKey = com.ibm.icu.text.Collator.getInstance().getCollationKey(source);
+    }
+
     /**
      * Compares this object to the specified collation key object to determine
      * their relative order.



Mime
View raw message