aboutsummaryrefslogtreecommitdiffstats
path: root/testing-drivers/src/test/java/org/aspectj/testing/drivers/Harness.java
diff options
context:
space:
mode:
Diffstat (limited to 'testing-drivers/src/test/java/org/aspectj/testing/drivers/Harness.java')
-rw-r--r--testing-drivers/src/test/java/org/aspectj/testing/drivers/Harness.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing-drivers/src/test/java/org/aspectj/testing/drivers/Harness.java b/testing-drivers/src/test/java/org/aspectj/testing/drivers/Harness.java
index e932a027d..6c0a84fe9 100644
--- a/testing-drivers/src/test/java/org/aspectj/testing/drivers/Harness.java
+++ b/testing-drivers/src/test/java/org/aspectj/testing/drivers/Harness.java
@@ -1056,7 +1056,7 @@ class SubstringRunner implements StringRunner {
input = input.toLowerCase();
}
for (String substring : substrings) {
- if (-1 != input.indexOf(substring)) {
+ if (input.contains(substring)) {
return true;
}
}
@@ -1150,7 +1150,7 @@ class MessageRunValidator implements IRunValidator {
continue; // hmm
}
String text = message.getMessage();
- if ((null != text) && (-1 != text.indexOf(sought))) {
+ if ((null != text) && (text.contains(sought))) {
return true;
}
}