From 9e6e754e5464b5260db08ca25251cbe6a80f9a2e Mon Sep 17 00:00:00 2001 From: Daniel Brauner Date: Tue, 12 Nov 2024 10:20:40 +0100 Subject: [PATCH] Modify Java enablement condition in SyncAspectTemplateProvider 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" ); }