equal
deleted
inserted
replaced
709 public static final short POLLIN; |
709 public static final short POLLIN; |
710 public static final short POLLOUT; |
710 public static final short POLLOUT; |
711 |
711 |
712 public static UnixDomainSocketAddress checkUnixAddress(SocketAddress sa) { |
712 public static UnixDomainSocketAddress checkUnixAddress(SocketAddress sa) { |
713 if (sa == null) |
713 if (sa == null) |
714 throw new NullPointerException(); |
714 return null; |
715 if (!(sa instanceof UnixDomainSocketAddress)) |
715 if (!(sa instanceof UnixDomainSocketAddress)) |
716 throw new UnsupportedAddressTypeException(); |
716 throw new UnsupportedAddressTypeException(); |
717 UnixDomainSocketAddress usa = (UnixDomainSocketAddress)sa; |
717 UnixDomainSocketAddress usa = (UnixDomainSocketAddress)sa; |
718 return usa; |
718 return usa; |
719 } |
719 } |