InetAddresses: prepare for Android 10's real method support

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2019-09-30 19:42:02 +02:00
parent c545b5e65f
commit eb45b4b1bd

View File

@ -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);
}
}
}