diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2023-09-15 00:50:19 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2023-09-15 00:50:19 +0200 |
commit | 0acc5aeafa6ef85287502f3ba63f39eee5e44196 (patch) | |
tree | 6486720d02ce5438fd9d998b599d41508f7332a3 | |
parent | 8d62e5d04d354683dc34c9a8e65d08bc09c414fd (diff) | |
download | jgit-0acc5aeafa6ef85287502f3ba63f39eee5e44196.tar.gz jgit-0acc5aeafa6ef85287502f3ba63f39eee5e44196.zip |
[errorprone] Suppress ImmutableEnumChecker for ShutdownHook
Here we use enum to implement a singleton. Hence suppress the errorprone
error ImmutableEnumChecker.
Change-Id: I21f6ed83c08936dfc9aa591af809e69f3053a050
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/internal/util/ShutdownHook.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/util/ShutdownHook.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/util/ShutdownHook.java index 9a299bc260..55edf79281 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/util/ShutdownHook.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/util/ShutdownHook.java @@ -27,6 +27,7 @@ import org.slf4j.LoggerFactory; * 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 |