InetAddress.java (toString): Use hostname when not null, don't do an explicit reverse getHostName() lookup.
* java/net/InetAddress.java (toString): Use hostname when not null, don't do an explicit reverse getHostName() lookup. * java/net/Socket.java (setSocketImplFactory): When fac == null throw NullPointerException. From-SVN: r59902
This commit is contained in:
parent
7089914828
commit
081a777dea
3 changed files with 18 additions and 7 deletions
|
@ -892,6 +892,9 @@ public class Socket
|
|||
if (sm != null)
|
||||
sm.checkSetFactory();
|
||||
|
||||
if (fac == null)
|
||||
throw new SocketException("SocketImplFactory cannot be null");
|
||||
|
||||
factory = fac;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue