You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by gg...@apache.org on 2003/07/26 00:57:35 UTC

cvs commit: jakarta-commons/codec/src/test/org/apache/commons/codec/binary Base64Test.java

ggregory    2003/07/25 15:57:35

  Modified:    codec/src/test/org/apache/commons/codec/binary
                        Base64Test.java
  Log:
  Severity	Description	Resource	In Folder	Location	Creation Time
  	Unnecessary cast to type Object for expression of type byte[]	Base64Test.java	Apache Jakarta Commons/codec/src/test/org/apache/commons/codec/binary	line 370	July 23, 2003 11:22:45 AM
  	Unnecessary cast to type Object for expression of type byte[]	Base64Test.java	Apache Jakarta Commons/codec/src/test/org/apache/commons/codec/binary	line 401	July 23, 2003 11:22:45 AM
  	Unnecessary cast to type Object for expression of type Object	Base64Test.java	Apache Jakarta Commons/codec/src/test/org/apache/commons/codec/binary	line 373	July 23, 2003 11:22:45 AM
  
  Revision  Changes    Path
  1.4       +7 -7      jakarta-commons/codec/src/test/org/apache/commons/codec/binary/Base64Test.java
  
  Index: Base64Test.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/codec/src/test/org/apache/commons/codec/binary/Base64Test.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Base64Test.java	14 May 2003 02:40:18 -0000	1.3
  +++ Base64Test.java	25 Jul 2003 22:57:35 -0000	1.4
  @@ -367,10 +367,10 @@
           String original = "Hello World!";
           byte[] bArray = 
               Base64.encodeBase64( (new String(original)).getBytes() );
  -        Object o = (Object) bArray;
  +        Object o = bArray;
           
           Base64 b64 = new Base64();
  -        Object oDecoded = (Object) b64.decode( o );
  +        Object oDecoded = b64.decode( o );
           byte[] baDecoded = (byte[]) oDecoded;
           String dest = new String( baDecoded );
   
  @@ -398,7 +398,7 @@
   
           String original = "Hello World!";
           byte[] origBytes = original.getBytes();
  -        Object origObj = (Object) origBytes;
  +        Object origObj = origBytes;
   
           Base64 b64 = new Base64();
           Object oEncoded = b64.encode( origObj );
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org