commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject cvs commit: jakarta-commons/codec/src/test/org/apache/commons/codec/binary BinaryTest.java
Date Sun, 21 Mar 2004 01:29:09 GMT
ggregory    2004/03/20 17:29:09

  Modified:    codec/src/test/org/apache/commons/codec/binary
                        BinaryTest.java
  Log:
  Removed unnecessary type casts.
  
  Revision  Changes    Path
  1.9       +4 -4      jakarta-commons/codec/src/test/org/apache/commons/codec/binary/BinaryTest.java
  
  Index: BinaryTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/codec/src/test/org/apache/commons/codec/binary/BinaryTest.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- BinaryTest.java	21 Mar 2004 01:26:35 -0000	1.8
  +++ BinaryTest.java	21 Mar 2004 01:29:09 -0000	1.9
  @@ -183,10 +183,10 @@
        */
       void assertDecodeObject(byte[] bits, String encodeMe) throws DecoderException {
           byte[] decoded;
  -        decoded = (byte[]) instance.decode((Object) encodeMe);
  +        decoded = (byte[]) instance.decode(encodeMe);
           assertEquals(new String(bits), new String(decoded));
           if (encodeMe == null) {
  -            decoded = (byte[]) instance.decode((byte[]) null);
  +            decoded = instance.decode((byte[]) null);
           } else {
               decoded = (byte[]) instance.decode((Object) encodeMe.getBytes());
           }
  @@ -194,7 +194,7 @@
           if (encodeMe == null) {
               decoded = (byte[]) instance.decode((char[]) null);
           } else {
  -            decoded = (byte[]) instance.decode((Object) encodeMe.toCharArray());
  +            decoded = (byte[]) instance.decode(encodeMe.toCharArray());
           }
           assertEquals(new String(bits), new String(decoded));
       }
  
  
  

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


Mime
View raw message