]> source.dussan.org Git - aspectj.git/commitdiff
Replace List.indexOf() with List.contains()
authorLars Grefer <eclipse@larsgrefer.de>
Sat, 15 Aug 2020 14:09:05 +0000 (16:09 +0200)
committerLars Grefer <eclipse@larsgrefer.de>
Sat, 15 Aug 2020 14:09:05 +0000 (16:09 +0200)
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
org.aspectj.ajdt.core/src/main/java/org/aspectj/tools/ajc/Main.java

index 88558fed0aae5242d229237471989eaaf3ee060c..2f37131486df4624019535b9ba59ea176b66b7c7 100644 (file)
@@ -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)));
        }
 
        /**