Skip to content

Commit 8bfc43a

Browse files
committed
Fix PMD warning
1 parent 53e668d commit 8bfc43a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎junixsocket-common/src/main/java/org/newsclub/net/unix/AFInetAddress.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ static final byte[] unwrapAddress(InetAddress addr, AFAddressFamily<?> af)
181181
String hostname = addr.getHostName();
182182
try {
183183
return unwrapAddress(hostname, af);
184-
} catch (IllegalStateException | IllegalArgumentException e) {
185-
throw new SocketException("Unsupported address");
184+
} catch (IllegalArgumentException e) {
185+
throw (SocketException)new SocketException("Unsupported address").initCause(e);
186186
}
187187
}
188188

0 commit comments

Comments
 (0)