Skip to content

Commit eb76f57

Browse files
committed
Use Java 5's String#contains()
1 parent 3bf874e commit eb76f57

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test/java/org/apache/commons/codec/binary/HexTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public void testCustomCharsetBadName() {
198198

199199
@Test
200200
public void testCustomCharsetToString() {
201-
assertTrue(new Hex().toString().indexOf(Hex.DEFAULT_CHARSET_NAME) >= 0);
201+
assertTrue(new Hex().toString().contains(Hex.DEFAULT_CHARSET_NAME));
202202
}
203203

204204
@Test

0 commit comments

Comments
 (0)