[errorprone] Suppress ImmutableEnumChecker for ShutdownHook

Here we use enum to implement a singleton. Hence suppress the errorprone
error ImmutableEnumChecker.

Change-Id: I21f6ed83c08936dfc9aa591af809e69f3053a050
This commit is contained in:
Matthias Sohn 2023-09-15 00:50:19 +02:00
parent 8d62e5d04d
commit 0acc5aeafa
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@
* A hook registered as a JVM shutdown hook managing a set of objects needing
* cleanup during JVM shutdown. See {@link Runtime#addShutdownHook}.
*/
@SuppressWarnings("ImmutableEnumChecker")
public enum ShutdownHook {
/**
* Singleton