diff --git a/junixsocket-common/src/test/java/org/newsclub/net/unix/SocketTestBase.java b/junixsocket-common/src/test/java/org/newsclub/net/unix/SocketTestBase.java index 78bfe5f2b..683a21514 100644 --- a/junixsocket-common/src/test/java/org/newsclub/net/unix/SocketTestBase.java +++ b/junixsocket-common/src/test/java/org/newsclub/net/unix/SocketTestBase.java @@ -315,6 +315,7 @@ protected void acceptAndHandleConnection() throws IOException { } @Override + @SuppressWarnings("PMD.AvoidInstanceofChecksInCatchClause") public final void run() { try { loop.set(true); diff --git a/junixsocket-ssl/src/main/java/org/newsclub/net/unix/ssl/SSLContextBuilder.java b/junixsocket-ssl/src/main/java/org/newsclub/net/unix/ssl/SSLContextBuilder.java index 930987fc1..931944d91 100644 --- a/junixsocket-ssl/src/main/java/org/newsclub/net/unix/ssl/SSLContextBuilder.java +++ b/junixsocket-ssl/src/main/java/org/newsclub/net/unix/ssl/SSLContextBuilder.java @@ -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",