Skip to content

Commit

Permalink
Use CompilerOptions.ENABLED.equals() to check if the release flag is …
Browse files Browse the repository at this point in the history
…enabled
  • Loading branch information
testforstephen committed Apr 15, 2024
1 parent 26879d9 commit ace7b3e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private static void configureJavacContext(Context context, Map<String, String> c
}
String release = compilerOptions.get(CompilerOptions.OPTION_Release);
String compliance = compilerOptions.get(CompilerOptions.OPTION_Compliance);
if (release == CompilerOptions.ENABLED && compliance != null && !compliance.isEmpty()) {
if (CompilerOptions.ENABLED.equals(release) && compliance != null && !compliance.isEmpty()) {
options.put(Option.RELEASE, compliance);
}
String source = compilerOptions.get(CompilerOptions.OPTION_Source);
Expand Down

0 comments on commit ace7b3e

Please sign in to comment.