From d8f3a54f9b7cd24cc6dd007f454ca99e151a819a Mon Sep 17 00:00:00 2001 From: GJ Date: Mon, 7 Oct 2013 07:56:13 -0400 Subject: [PATCH] Compiler throws warnings all over the place about our close methods, this one is no different. --- .../gmail/nossr50/database/FlatfileDatabaseManager.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java b/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java index 5dac4b29c..1fc0d2447 100644 --- a/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java +++ b/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java @@ -401,14 +401,7 @@ public final class FlatfileDatabaseManager implements DatabaseManager { e.printStackTrace(); } finally { - // Silly inlining of tryClose() because the compiler is giving a warning when I use tryClose() - try { - if (in != null) { - in.close(); - } - } - catch (IOException e) { - } + tryClose(in); } }