harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r1002229 - in /harmony/enhanced/java/branches/java6/classlib/modules/text/src/main/java: java/text/CollationKey.java org/apache/harmony/text/internal/nls/messages.properties
Date Tue, 28 Sep 2010 15:53:26 GMT
Author: hindessm
Date: Tue Sep 28 15:53:26 2010
New Revision: 1002229

URL: http://svn.apache.org/viewvc?rev=1002229&view=rev
Log:
Fix non-nls message after r1002169.

Modified:
    harmony/enhanced/java/branches/java6/classlib/modules/text/src/main/java/java/text/CollationKey.java
    harmony/enhanced/java/branches/java6/classlib/modules/text/src/main/java/org/apache/harmony/text/internal/nls/messages.properties

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=1002229&r1=1002228&r2=1002229&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 15:53:26 2010
@@ -17,6 +17,8 @@
 
 package java.text;
 
+import org.apache.harmony.text.internal.nls.Messages;
+
 /**
  * Represents a string under the rules of a specific {@code Collator} object.
  * Comparing two {@code CollationKey} instances returns the relative order of
@@ -91,7 +93,7 @@ public class CollationKey implements Com
 
     protected CollationKey(String source) {
         if (source == null) {
-            throw new NullPointerException("Specified source is null");
+            throw new NullPointerException(Messages.getString("text.20"));
         }
         this.source = source;
         icuKey = com.ibm.icu.text.Collator.getInstance().getCollationKey(source);

Modified: harmony/enhanced/java/branches/java6/classlib/modules/text/src/main/java/org/apache/harmony/text/internal/nls/messages.properties
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/java6/classlib/modules/text/src/main/java/org/apache/harmony/text/internal/nls/messages.properties?rev=1002229&r1=1002228&r2=1002229&view=diff
==============================================================================
--- harmony/enhanced/java/branches/java6/classlib/modules/text/src/main/java/org/apache/harmony/text/internal/nls/messages.properties
(original)
+++ harmony/enhanced/java/branches/java6/classlib/modules/text/src/main/java/org/apache/harmony/text/internal/nls/messages.properties
Tue Sep 28 15:53:26 2010
@@ -48,3 +48,4 @@ text.1C=Format.parseObject(String) parse
 text.1D=Unparseable number: {0}
 text.1E=Offset out of bounds \: {0}
 text.1F=All rows in time zone array must have length at least 5
+text.20=Specified source is null



Mime
View raw message