[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:
parent
8d62e5d04d
commit
0acc5aeafa
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue