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:
Mark Wielaard 2002-12-07 01:19:02 +00:00 committed by Mark Wielaard
parent 7089914828
commit 081a777dea
3 changed files with 18 additions and 7 deletions

View file

@ -892,6 +892,9 @@ public class Socket
if (sm != null)
sm.checkSetFactory();
if (fac == null)
throw new SocketException("SocketImplFactory cannot be null");
factory = fac;
}