We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f3f307 commit 274766fCopy full SHA for 274766f
1 file changed
src/main/java/com/teragrep/jla_04/RelpConfig.java
@@ -70,11 +70,8 @@ private void initLogger() {
70
System.out.println("Can't find properties file at " + configpath);
71
return;
72
}
73
- FileInputStream inputStream = null;
74
- try {
75
- inputStream = new FileInputStream(configpath);
+ try(FileInputStream inputStream = new FileInputStream(configpath)) {
76
LogManager.getLogManager().readConfiguration(inputStream);
77
- inputStream.close();
78
} catch (Exception e) {
79
e.printStackTrace();
80
0 commit comments