From: Andrey Turbanov Date: Wed, 13 Apr 2022 09:56:23 +0000 (+0300) Subject: Fix suspicious Map.get call X-Git-Tag: V1_9_19~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=047a93c24f4eef3b2ebf254be9332d4340adbd04;p=aspectj.git Fix suspicious Map.get call --- diff --git a/org.aspectj.ajdt.core/src/main/java/org/aspectj/ajdt/internal/core/builder/AjBuildConfig.java b/org.aspectj.ajdt.core/src/main/java/org/aspectj/ajdt/internal/core/builder/AjBuildConfig.java index 8aecf7b10..4c319d549 100644 --- a/org.aspectj.ajdt.core/src/main/java/org/aspectj/ajdt/internal/core/builder/AjBuildConfig.java +++ b/org.aspectj.ajdt.core/src/main/java/org/aspectj/ajdt/internal/core/builder/AjBuildConfig.java @@ -614,7 +614,7 @@ public class AjBuildConfig implements CompilerConfigurationChangeFlags { private void setOption(String optionKey, String lintValue, Map 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)) {