Skip to content

Commit

Permalink
Fixed Java enabled condition in SyncAspectTemplateProvider (#6987)
Browse files Browse the repository at this point in the history
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 Nov 15, 2024
1 parent 2bbe4de commit 353dac8
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 353dac8

Please sign in to comment.