diff options
author | Lars Grefer <eclipse@larsgrefer.de> | 2020-08-15 16:09:05 +0200 |
---|---|---|
committer | Lars Grefer <eclipse@larsgrefer.de> | 2020-08-15 16:09:05 +0200 |
commit | 7824e7d3045b9db278a96a21e69110976767b32e (patch) | |
tree | 28e032ca16358fbd982bf00bdc53c807cf9f1ebc /org.aspectj.ajdt.core | |
parent | a85308ec103a69a86a8e02adf02112d472b00568 (diff) | |
download | aspectj-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.java | 2 |
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))); } /** |