This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-codec.git
The following commit(s) were added to refs/heads/master by this push:
new eb76f57e Use Java 5's String#contains()
eb76f57e is described below
commit eb76f57ea28d72eb7dbf721227731bd6501740e9
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Mar 22 09:27:09 2024 -0400
Use Java 5's String#contains()
---
src/test/java/org/apache/commons/codec/binary/HexTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test/java/org/apache/commons/codec/binary/HexTest.java
b/src/test/java/org/apache/commons/codec/binary/HexTest.java
index d41d57a2..8857b267 100644
--- a/src/test/java/org/apache/commons/codec/binary/HexTest.java
+++ b/src/test/java/org/apache/commons/codec/binary/HexTest.java
@@ -198,7 +198,7 @@ public class HexTest {
@Test
public void testCustomCharsetToString() {
- assertTrue(new Hex().toString().indexOf(Hex.DEFAULT_CHARSET_NAME) >=
0);
+ assertTrue(new Hex().toString().contains(Hex.DEFAULT_CHARSET_NAME));
}
@Test