jdk/src/share/classes/java/net/InetSocketAddress.java
changeset 16870 f35b2bd19761
parent 16089 7cf1e2708454
child 18156 edb590d448c5
equal deleted inserted replaced
16869:4adc2d6d2d5a 16870:f35b2bd19761
    85 
    85 
    86         private String getHostString() {
    86         private String getHostString() {
    87             if (hostname != null)
    87             if (hostname != null)
    88                 return hostname;
    88                 return hostname;
    89             if (addr != null) {
    89             if (addr != null) {
    90                 if (addr.hostName != null)
    90                 if (addr.holder().getHostName() != null)
    91                     return addr.hostName;
    91                     return addr.holder().getHostName();
    92                 else
    92                 else
    93                     return addr.getHostAddress();
    93                     return addr.getHostAddress();
    94             }
    94             }
    95             return null;
    95             return null;
    96         }
    96         }