commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1395067 - /commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/digest/DigestUtilsTest.java
Date Sat, 06 Oct 2012 14:10:02 GMT
Author: sebb
Date: Sat Oct  6 14:10:02 2012
New Revision: 1395067

URL: http://svn.apache.org/viewvc?rev=1395067&view=rev
Log:
Remove unnecessary private method; call the underlying method directly

Modified:
    commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/digest/DigestUtilsTest.java

Modified: commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/digest/DigestUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/digest/DigestUtilsTest.java?rev=1395067&r1=1395066&r2=1395067&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/digest/DigestUtilsTest.java
(original)
+++ commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/digest/DigestUtilsTest.java
Sat Oct  6 14:10:02 2012
@@ -27,6 +27,7 @@ import java.util.Random;
 
 import org.apache.commons.codec.binary.Hex;
 import org.apache.commons.codec.binary.StringUtils;
+import static org.apache.commons.codec.binary.StringUtils.getBytesUtf8;
 import org.junit.Test;
 
 /**
@@ -38,10 +39,6 @@ public class DigestUtilsTest {
 
     private final byte[] testData = new byte[1024*1024];
 
-    private byte[] getBytesUtf8(String hashMe) {
-        return StringUtils.getBytesUtf8(hashMe);
-    }
-
     /* (non-Javadoc)
      * @see junit.framework.TestCase#setUp()
      */



Mime
View raw message