Ref: add new static analyser rule: bestpractices.xml/UnusedAssignment

This commit is contained in:
Laurent Clouet
2024-06-06 01:05:27 +00:00
parent fd33b6d666
commit 1b3cf096d1
8 changed files with 20 additions and 29 deletions

View File

@@ -256,9 +256,8 @@ public class SettingsLoader {
Properties configFileProp = new Properties();
if (new File(path).exists()) {
InputStream input = null;
try {
input = new FileInputStream(path);
InputStream input = new FileInputStream(path);
configFileProp.load(input);
} catch (IOException e) {
e.printStackTrace();