Skip to content

Commit

Permalink
Fix PMD warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kohlschuetter committed Oct 26, 2022
1 parent 53e668d commit 8bfc43a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ static final byte[] unwrapAddress(InetAddress addr, AFAddressFamily<?> af)
String hostname = addr.getHostName();
try {
return unwrapAddress(hostname, af);
} catch (IllegalStateException | IllegalArgumentException e) {
throw new SocketException("Unsupported address");
} catch (IllegalArgumentException e) {
throw (SocketException)new SocketException("Unsupported address").initCause(e);
}
}

Expand Down

0 comments on commit 8bfc43a

Please sign in to comment.