Skip to content

Commit

Permalink
Fix PMD warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kohlschuetter committed Feb 12, 2024
1 parent f0759d2 commit 416077c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ protected void acceptAndHandleConnection() throws IOException {
}

@Override
@SuppressWarnings("PMD.AvoidInstanceofChecksInCatchClause")
public final void run() {
try {
loop.set(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ public static IOException wrapIOExceptionIfJDKBug(IOException e) {
} else if (msg.contains("HmacPBESHA256")) {
if ("IBM J9 VM".equals(System.getProperty("java.vm.name"))) {
String vmVersion = System.getProperty("java.runtime.version", "");
if (vmVersion.startsWith("8.0.") && vmVersion.compareTo("8.0.8.") < 0) {
if (vmVersion.startsWith("8.0.") && vmVersion.compareTo("8.0.8.") < 0) { // NOPMD
return new KnownJavaBugIOException(
"Bug JDK-8267701 detected -- please upgrade your Java release to at least IBM SDK 8.0.8.0; "
+ "details here: https://www.ibm.com/support/pages/troubleshooting-unable-open-pkcs12-keystores-due-unrecoverablekeyexception",
Expand Down

0 comments on commit 416077c

Please sign in to comment.