InetAddresses: prepare for Android 10's real method support
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
1 parent
c545b5e65f
commit
eb45b4b1bd
1 file changed
+2
@@ -49,6 +49,8 @@ public final class InetAddresses {
|
||||
if (cause instanceof IllegalArgumentException)
|
||||
throw new ParseException(InetAddress.class, address, cause);
|
||||
throw new RuntimeException(e);
|
||||
} catch (final IllegalArgumentException e) {
|
||||
throw new ParseException(InetAddress.class, address, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user