aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authorLars Grefer <eclipse@larsgrefer.de>2020-08-15 16:09:05 +0200
committerLars Grefer <eclipse@larsgrefer.de>2020-08-15 16:09:05 +0200
commit7824e7d3045b9db278a96a21e69110976767b32e (patch)
tree28e032ca16358fbd982bf00bdc53c807cf9f1ebc /org.aspectj.ajdt.core
parenta85308ec103a69a86a8e02adf02112d472b00568 (diff)
downloadaspectj-7824e7d3045b9db278a96a21e69110976767b32e.tar.gz
aspectj-7824e7d3045b9db278a96a21e69110976767b32e.zip
Replace List.indexOf() with List.contains()
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/main/java/org/aspectj/tools/ajc/Main.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.aspectj.ajdt.core/src/main/java/org/aspectj/tools/ajc/Main.java b/org.aspectj.ajdt.core/src/main/java/org/aspectj/tools/ajc/Main.java
index 88558fed0..2f3713148 100644
--- a/org.aspectj.ajdt.core/src/main/java/org/aspectj/tools/ajc/Main.java
+++ b/org.aspectj.ajdt.core/src/main/java/org/aspectj/tools/ajc/Main.java
@@ -141,7 +141,7 @@ public class Main {
}
private static boolean flagInArgs(String flag, String[] args) {
- return ((null != args) && (Arrays.asList(args).indexOf(flag) != -1));
+ return ((null != args) && (Arrays.asList(args).contains(flag)));
}
/**