mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 08:36:45 +01:00
Compiler throws warnings all over the place about our close methods, this one is no different.
This commit is contained in:
parent
de964a3a60
commit
d8f3a54f9b
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user