]> source.dussan.org Git - jgit.git/commitdiff
[errorprone] Suppress ImmutableEnumChecker for ShutdownHook 43/204343/1
authorMatthias Sohn <matthias.sohn@sap.com>
Thu, 14 Sep 2023 22:50:19 +0000 (00:50 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Thu, 14 Sep 2023 22:50:19 +0000 (00:50 +0200)
Here we use enum to implement a singleton. Hence suppress the errorprone
error ImmutableEnumChecker.

Change-Id: I21f6ed83c08936dfc9aa591af809e69f3053a050

org.eclipse.jgit/src/org/eclipse/jgit/internal/util/ShutdownHook.java

index 9a299bc260964fc78c73067e6162c78e9bfb4d3c..55edf7928158888c346ee519befd5af20d77091d 100644 (file)
@@ -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