harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r926828 - in /harmony/enhanced/trunk/classlib/modules/crypto/src/main/java: javax/crypto/CipherInputStream.java org/apache/harmony/crypto/internal/nls/messages.properties
Date Tue, 23 Mar 2010 22:47:43 GMT
Author: hindessm
Date: Tue Mar 23 22:47:42 2010
New Revision: 926828

URL: http://svn.apache.org/viewvc?rev=926828&view=rev
Log:
NLS fix.

Modified:
    harmony/enhanced/trunk/classlib/modules/crypto/src/main/java/javax/crypto/CipherInputStream.java
    harmony/enhanced/trunk/classlib/modules/crypto/src/main/java/org/apache/harmony/crypto/internal/nls/messages.properties

Modified: harmony/enhanced/trunk/classlib/modules/crypto/src/main/java/javax/crypto/CipherInputStream.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/trunk/classlib/modules/crypto/src/main/java/javax/crypto/CipherInputStream.java?rev=926828&r1=926827&r2=926828&view=diff
==============================================================================
--- harmony/enhanced/trunk/classlib/modules/crypto/src/main/java/javax/crypto/CipherInputStream.java
(original)
+++ harmony/enhanced/trunk/classlib/modules/crypto/src/main/java/javax/crypto/CipherInputStream.java
Tue Mar 23 22:47:42 2010
@@ -26,6 +26,7 @@ import java.io.IOException;
 import java.io.InputStream;
 import javax.crypto.NullCipher;
 import java.security.GeneralSecurityException;
+import org.apache.harmony.crypto.internal.nls.Messages;
 
 /**
  * This class wraps an {@code InputStream} and a cipher so that {@code read()}
@@ -147,7 +148,7 @@ public class CipherInputStream extends F
     @Override
     public int read(byte[] b, int off, int len) throws IOException {
         if (in == null) {
-            throw new NullPointerException("Underlying input stream is null");
+            throw new NullPointerException(Messages.getString("crypto.47"));
         }
 
         int read_b;

Modified: harmony/enhanced/trunk/classlib/modules/crypto/src/main/java/org/apache/harmony/crypto/internal/nls/messages.properties
URL: http://svn.apache.org/viewvc/harmony/enhanced/trunk/classlib/modules/crypto/src/main/java/org/apache/harmony/crypto/internal/nls/messages.properties?rev=926828&r1=926827&r2=926828&view=diff
==============================================================================
--- harmony/enhanced/trunk/classlib/modules/crypto/src/main/java/org/apache/harmony/crypto/internal/nls/messages.properties
(original)
+++ harmony/enhanced/trunk/classlib/modules/crypto/src/main/java/org/apache/harmony/crypto/internal/nls/messages.properties
Tue Mar 23 22:47:42 2010
@@ -85,3 +85,4 @@ crypto.43=encoding input is null\!
 crypto.44=Wrap
 crypto.45=Unwrap
 crypto.46=GetKeySize
+crypto.47=Underlying input stream is null



Mime
View raw message