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:
committed by
Mark Wielaard
parent
7089914828
commit
081a777dea
@@ -892,6 +892,9 @@ public class Socket
|
||||
if (sm != null)
|
||||
sm.checkSetFactory();
|
||||
|
||||
if (fac == null)
|
||||
throw new SocketException("SocketImplFactory cannot be null");
|
||||
|
||||
factory = fac;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user