From 353dac83cee869af8f4a987873044beb63c29233 Mon Sep 17 00:00:00 2001 From: Daniel Brauner <44034965+LeFrosch@users.noreply.github.com> Date: Fri, 15 Nov 2024 09:44:28 +0100 Subject: [PATCH] Fixed Java enabled condition in SyncAspectTemplateProvider (#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. --- .../base/sync/aspects/strategy/SyncAspectTemplateProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/src/com/google/idea/blaze/base/sync/aspects/strategy/SyncAspectTemplateProvider.java b/base/src/com/google/idea/blaze/base/sync/aspects/strategy/SyncAspectTemplateProvider.java index 87933b32264..7f56bb247be 100644 --- a/base/src/com/google/idea/blaze/base/sync/aspects/strategy/SyncAspectTemplateProvider.java +++ b/base/src/com/google/idea/blaze/base/sync/aspects/strategy/SyncAspectTemplateProvider.java @@ -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" ); }