From f73803f45be2b958afd34ee6ef384dc720e7d7fd Mon Sep 17 00:00:00 2001 From: Sebastian Hartte Date: Sun, 2 Jun 2024 18:37:00 +0200 Subject: [PATCH] Remove AutoClosable from SecureJar to prevent spurious warnings on all getters that return it --- src/test/java/cpw/mods/jarhandling/impl/TestMetadata.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/java/cpw/mods/jarhandling/impl/TestMetadata.java b/src/test/java/cpw/mods/jarhandling/impl/TestMetadata.java index 2eb4d76..c762629 100644 --- a/src/test/java/cpw/mods/jarhandling/impl/TestMetadata.java +++ b/src/test/java/cpw/mods/jarhandling/impl/TestMetadata.java @@ -70,5 +70,9 @@ public Set getPackagesExcluding(String... excludedRootPackages) { public List getMetaInfServices() { return List.of(); } + + @Override + public void close() { + } } }