From 69feb40e0f374d1846566913bbd10e972736bac7 Mon Sep 17 00:00:00 2001 From: Mikkel Kjeldsen Date: Wed, 26 Feb 2025 19:41:20 +0100 Subject: [PATCH] PrivateConstructorForUtilityClass: ignore `@SpringBootApplication` References: https://github.com/google/error-prone/issues/4834 --- .../bugpatterns/PrivateConstructorForUtilityClass.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/com/google/errorprone/bugpatterns/PrivateConstructorForUtilityClass.java b/core/src/main/java/com/google/errorprone/bugpatterns/PrivateConstructorForUtilityClass.java index da25c7f3ea6..a14dba51c7b 100644 --- a/core/src/main/java/com/google/errorprone/bugpatterns/PrivateConstructorForUtilityClass.java +++ b/core/src/main/java/com/google/errorprone/bugpatterns/PrivateConstructorForUtilityClass.java @@ -61,6 +61,7 @@ public final class PrivateConstructorForUtilityClass extends BugChecker ImmutableSet.of( "org.junit.runner.RunWith", "org.robolectric.annotation.Implements", + "org.springframework.boot.autoconfigure.SpringBootApplication", "com.google.auto.value.AutoValue"); @Override