cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r941158 - in /cxf/trunk/common/common/src: main/java/org/apache/cxf/common/util/Base64Utility.java test/java/org/apache/cxf/common/util/Base64UtilityTest.java
Date Wed, 05 May 2010 06:27:26 GMT
Author: dkulp
Date: Wed May  5 06:27:25 2010
New Revision: 941158

URL: http://svn.apache.org/viewvc?rev=941158&view=rev
Log:
Fix some eclipse warnings

Modified:
    cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/Base64Utility.java
    cxf/trunk/common/common/src/test/java/org/apache/cxf/common/util/Base64UtilityTest.java

Modified: cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/Base64Utility.java
URL: http://svn.apache.org/viewvc/cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/Base64Utility.java?rev=941158&r1=941157&r2=941158&view=diff
==============================================================================
--- cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/Base64Utility.java (original)
+++ cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/Base64Utility.java Wed
May  5 06:27:25 2010
@@ -194,7 +194,7 @@ public final class Base64Utility {
         try {
             ostream.write(decodeChunk(id, o, l));
         } catch (Exception e) {
-            LOG.warning("Invalid base64 encoded string : " + id);
+            LOG.warning("Invalid base64 encoded string : " + new String(id));
             throw new Base64Exception(new Message("BASE64_RUNTIME_EXCEPTION", LOG), e);
         }
     }

Modified: cxf/trunk/common/common/src/test/java/org/apache/cxf/common/util/Base64UtilityTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/common/common/src/test/java/org/apache/cxf/common/util/Base64UtilityTest.java?rev=941158&r1=941157&r2=941158&view=diff
==============================================================================
--- cxf/trunk/common/common/src/test/java/org/apache/cxf/common/util/Base64UtilityTest.java
(original)
+++ cxf/trunk/common/common/src/test/java/org/apache/cxf/common/util/Base64UtilityTest.java
Wed May  5 06:27:25 2010
@@ -101,7 +101,7 @@ public class Base64UtilityTest extends A
     public void testDecodeInvalidString() throws Exception {
         try {
             String in = "QWxhZGRpbjpcGVuIHNlc2FtZQ==";
-            byte bytes[] = Base64Utility.decode(in);
+            Base64Utility.decode(in);
             fail("This test should be fail");
         } catch (Base64Exception e) {
             //nothing to do



Mime
View raw message