]> source.dussan.org Git - aspectj.git/commitdiff
Fix suspicious Map.get call
authorAndrey Turbanov <turbanoff@gmail.com>
Wed, 13 Apr 2022 09:56:23 +0000 (12:56 +0300)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Fri, 15 Apr 2022 03:05:50 +0000 (10:05 +0700)
org.aspectj.ajdt.core/src/main/java/org/aspectj/ajdt/internal/core/builder/AjBuildConfig.java

index 8aecf7b1047b80e6660b317252cebb0bd3a9b48d..4c319d549df3e08205ebf05ca11a2545aaaf5f2b 100644 (file)
@@ -614,7 +614,7 @@ public class AjBuildConfig implements CompilerConfigurationChangeFlags {
 
        private void setOption(String optionKey, String lintValue, Map<String,String> lintOptionsAccumulator) {
                if (lintOptionsMap!=null && lintOptionsMap.containsKey(optionKey)) {
-                       String v = lintOptionsMap.get(lintOptionsMap);
+                       String v = lintOptionsMap.get(optionKey);
                        if (AJLINT_IGNORE.equals(v)) {
                                lintValue = AjCompilerOptions.IGNORE;
                        } else if (AJLINT_WARN.equals(v)) {