8273243: Fix indentations in java.net.InetAddress methods
Reviewed-by: dfuchs, bpb
This commit is contained in:
parent
152e66923d
commit
0c1b16b75a
@ -686,7 +686,7 @@ public class InetAddress implements java.io.Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
//XXX: if it looks a spoof just return the address?
|
||||
//XXX: if it looks like a spoof just return the address?
|
||||
if (!ok) {
|
||||
host = addr.getHostAddress();
|
||||
return host;
|
||||
@ -1510,8 +1510,7 @@ public class InetAddress implements java.io.Serializable {
|
||||
}
|
||||
|
||||
static InetAddress[] getAddressesFromNameService(String host, InetAddress reqAddr)
|
||||
throws UnknownHostException
|
||||
{
|
||||
throws UnknownHostException {
|
||||
InetAddress[] addresses = null;
|
||||
UnknownHostException ex = null;
|
||||
|
||||
@ -1520,8 +1519,7 @@ public class InetAddress implements java.io.Serializable {
|
||||
} catch (UnknownHostException uhe) {
|
||||
if (host.equalsIgnoreCase("localhost")) {
|
||||
addresses = new InetAddress[]{impl.loopbackAddress()};
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
ex = uhe;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user