Skip to content

Commit

Permalink
chore: correct warnings from Qodana scan (#3491)
Browse files Browse the repository at this point in the history
  • Loading branch information
iBotPeaches authored Jan 15, 2024
1 parent 69914eb commit 0a9ec34
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private static void loadProps() {
try {
sProps.load(in);
in.close();
} catch (IOException ex) {
} catch (NullPointerException | IOException ex) {
LOGGER.warning("Can't load properties.");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,6 @@ private static void escapeJavaStyleString(Writer out, String str) throws IOExcep
} else {
switch (ch) {
case '\'' :
if (false) {
out.write('\\');
}
out.write('\'');
break;
case '"' :
Expand All @@ -110,9 +107,6 @@ private static void escapeJavaStyleString(Writer out, String str) throws IOExcep
out.write('\\');
break;
case '/' :
if (false) {
out.write('\\');
}
out.write('/');
break;
default :
Expand Down

0 comments on commit 0a9ec34

Please sign in to comment.