From: Lars Grefer Date: Sat, 15 Aug 2020 14:09:05 +0000 (+0200) Subject: Replace List.indexOf() with List.contains() X-Git-Tag: V1_9_7M1~9^2~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7824e7d3045b9db278a96a21e69110976767b32e;p=aspectj.git Replace List.indexOf() with List.contains() Signed-off-by: Lars Grefer --- 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))); } /**