Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Lewis2019-10-17 18:48:44 +0000
committerGerrit Code Review @ Eclipse.org2019-10-17 18:48:44 +0000
commitcfc3136f2de3204b4daa4a8d101597cc6ef42524 (patch)
tree2a4feff75b0356742d9b2700e0711a2b73f24172
parent89ffb1c92226e84eac5c4cee6c0dabf5655b8b3d (diff)
parent5a7b4a8c7a2530b455d5fca6849f81ecc53c1362 (diff)
downloadorg.eclipse.ecf-cfc3136f2de3204b4daa4a8d101597cc6ef42524.tar.gz
org.eclipse.ecf-cfc3136f2de3204b4daa4a8d101597cc6ef42524.tar.xz
org.eclipse.ecf-cfc3136f2de3204b4daa4a8d101597cc6ef42524.zip
Merge "String.indexOf can be replaced with String.contains"
-rw-r--r--framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/StringUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/StringUtils.java b/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/StringUtils.java
index d8f4a5ff2..1b530d3b6 100644
--- a/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/StringUtils.java
+++ b/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/StringUtils.java
@@ -221,7 +221,7 @@ public final class StringUtils {
* @return true if the target is contained within the string.
*/
public static boolean contains(String string, String target) {
- return (string.indexOf(target) != -1);
+ return (string.contains(target));
}
/**

Back to the top