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); } }