Skip to content

Commit

Permalink
Use Java 5's String#contains(CharSequence)
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Mar 22, 2024
1 parent a24fb62 commit 8937b6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ public void testStackTrace() throws Exception {
Thread.sleep(2000);
assertTrue(o1.isDestroyed());
bos.flush();
assertTrue(baos.toString().indexOf("Pooled object") >= 0);
assertTrue(baos.toString().contains("Pooled object"));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ public void testStackTrace() throws Exception {
Thread.sleep(2000);
assertTrue(o1.isDestroyed());
bos.flush();
assertTrue(baos.toString().indexOf("Pooled object") >= 0);
assertTrue(baos.toString().contains("Pooled object"));
}

/**
Expand Down

0 comments on commit 8937b6a

Please sign in to comment.