Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Hammer2019-05-24 12:21:23 -0400
committerKarsten Thoms2019-06-11 21:32:23 -0400
commitff36325e43f71a96a7927f2a5089af77e28f228b (patch)
treeec21374ebe0e67143236da93ac4e890d4c66db1d /org.eclipse.debug.ui/ui/org/eclipse/debug/internal
parentbd8df14271a7b3e02edf3be120747adc880d4b39 (diff)
downloadeclipse.platform.debug-ff36325e43f71a96a7927f2a5089af77e28f228b.tar.gz
eclipse.platform.debug-ff36325e43f71a96a7927f2a5089af77e28f228b.tar.xz
eclipse.platform.debug-ff36325e43f71a96a7927f2a5089af77e28f228b.zip
String.indexOf can be replaced with String.containsI20190613-0210I20190612-1800I20190612-0115
Change-Id: Ia3ff4eebc3799a8c1b8f6bbcddd200d08e1d966b Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/AddMemoryRenderingContextAction.java2
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/RemoveRenderingContextAction.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/AddMemoryRenderingContextAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/AddMemoryRenderingContextAction.java
index e347d88b7..d517e68a9 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/AddMemoryRenderingContextAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/AddMemoryRenderingContextAction.java
@@ -57,7 +57,7 @@ public class AddMemoryRenderingContextAction implements IViewActionDelegate {
IMemoryRenderingContainer selectedPane = null;
for (int i = 0; i < viewPanes.length; i++) {
- if (actionId.indexOf(viewPanes[i].getId()) != -1) {
+ if (actionId.contains(viewPanes[i].getId())) {
selectedPane = viewPanes[i];
break;
}
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/RemoveRenderingContextAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/RemoveRenderingContextAction.java
index 92d2653a3..d671dc806 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/RemoveRenderingContextAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/RemoveRenderingContextAction.java
@@ -70,7 +70,7 @@ public class RemoveRenderingContextAction implements IViewActionDelegate {
IMemoryRenderingContainer selectedPane = null;
for (int i = 0; i < viewPanes.length; i++) {
- if (actionId.indexOf(viewPanes[i].getId()) != -1) {
+ if (actionId.contains(viewPanes[i].getId())) {
selectedPane = viewPanes[i];
break;
}

Back to the top