Skip to content

Commit

Permalink
Fixed Java enabled condition in SyncAspectTemplateProvider (bazelbuil…
Browse files Browse the repository at this point in the history
…d#6987)

Removed the check for GENERIC language class when determining if Java is enabled. This change ensures that only the presence of JAVA language class sets the "isJavaEnabled" flag to true.
  • Loading branch information
LeFrosch authored and Tomasz Pasternak committed Nov 25, 2024
1 parent 95b750b commit 2ec6b91
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private void writeJavaInfo(
var isAtLeastBazel8 = projectData.map(it -> it.getBlazeVersionData().bazelIsAtLeastVersion(8, 0, 0)).orElse(false);
return Map.of(
"bazel8OrAbove", isAtLeastBazel8 ? "true" : "false",
"isJavaEnabled", activeLanguages.contains(LanguageClass.JAVA) || activeLanguages.contains(LanguageClass.GENERIC) ? "true" : "false"
"isJavaEnabled", activeLanguages.contains(LanguageClass.JAVA) ? "true" : "false"
);
}

Expand Down

0 comments on commit 2ec6b91

Please sign in to comment.