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