From 6306407191f9e50dd62f3875fa6cea5ff1fb311a Mon Sep 17 00:00:00 2001 From: Mikkel Kjeldsen Date: Wed, 26 Feb 2025 19:52:10 +0100 Subject: [PATCH] ThreadSafe: recognize name Error Prone advertises https://errorprone.info/bugpattern/ThreadSafe but does not recognize the name: > Fatal error compiling: ThreadSafe is not a valid checker name The implementing checker, `ThreadSafeChecker`, is missing from the index of built-in checkers. Add it to the disabled checkers alongside the other experimental checkers. References: https://github.com/google/error-prone/issues/4833 --- .../com/google/errorprone/scanner/BuiltInCheckerSuppliers.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/java/com/google/errorprone/scanner/BuiltInCheckerSuppliers.java b/core/src/main/java/com/google/errorprone/scanner/BuiltInCheckerSuppliers.java index 311af635051..c29affc80df 100644 --- a/core/src/main/java/com/google/errorprone/scanner/BuiltInCheckerSuppliers.java +++ b/core/src/main/java/com/google/errorprone/scanner/BuiltInCheckerSuppliers.java @@ -585,6 +585,7 @@ import com.google.errorprone.bugpatterns.threadsafety.StaticGuardedByInstance; import com.google.errorprone.bugpatterns.threadsafety.SynchronizeOnNonFinalField; import com.google.errorprone.bugpatterns.threadsafety.ThreadPriorityCheck; +import com.google.errorprone.bugpatterns.threadsafety.ThreadSafeChecker; import com.google.errorprone.bugpatterns.time.DateChecker; import com.google.errorprone.bugpatterns.time.DurationFrom; import com.google.errorprone.bugpatterns.time.DurationGetTemporalUnit; @@ -1258,6 +1259,7 @@ public static ScannerSupplier warningChecks() { SystemExitOutsideMain.class, SystemOut.class, TestExceptionChecker.class, + ThreadSafeChecker.class, ThrowSpecificExceptions.class, ThrowsUncheckedException.class, TimeUnitMismatch.class,