From 930d9de108707af1ca1ac359706e16ec7744c7b5 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Mon, 29 Oct 2012 23:38:47 +0900 Subject: [PATCH] Suppress Eclipse warning about resource leak in EncryptedContactStore Eclipse complains that a handle is not closed, but upon review it seems to be a spurious warning. Change-Id: I34d73febb4c859c10026ceb2a36e4f1ff589cd06 --- .../com/google/gerrit/server/contact/EncryptedContactStore.java | 1 + 1 file changed, 1 insertion(+) diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/contact/EncryptedContactStore.java b/gerrit-server/src/main/java/com/google/gerrit/server/contact/EncryptedContactStore.java index bc88cd274d..bd1c0d7c6f 100644 --- a/gerrit-server/src/main/java/com/google/gerrit/server/contact/EncryptedContactStore.java +++ b/gerrit-server/src/main/java/com/google/gerrit/server/contact/EncryptedContactStore.java @@ -107,6 +107,7 @@ class EncryptedContactStore implements ContactStore { return true; } + @SuppressWarnings("resource") private static PGPPublicKeyRingCollection readPubRing(final File pub) { try { InputStream in = new FileInputStream(pub);