Skip to content

Commit ca5047c

Browse files
committed
Remove unnecessary private method; call the underlying method directly
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1395067 13f79535-47bb-0310-9956-ffa450edef68
1 parent 1137bb8 commit ca5047c

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/test/java/org/apache/commons/codec/digest/DigestUtilsTest.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
import org.apache.commons.codec.binary.Hex;
2929
import org.apache.commons.codec.binary.StringUtils;
30+
import static org.apache.commons.codec.binary.StringUtils.getBytesUtf8;
3031
import org.junit.Test;
3132

3233
/**
@@ -38,10 +39,6 @@ public class DigestUtilsTest {
3839

3940
private final byte[] testData = new byte[1024*1024];
4041

41-
private byte[] getBytesUtf8(String hashMe) {
42-
return StringUtils.getBytesUtf8(hashMe);
43-
}
44-
4542
/* (non-Javadoc)
4643
* @see junit.framework.TestCase#setUp()
4744
*/

0 commit comments

Comments
 (0)