jdk/src/java.base/share/classes/sun/security/x509/IPAddressName.java
changeset 32649 2ee9017c7597
parent 30649 e7cc8f48f616
child 34687 d302ed125dc9
equal deleted inserted replaced
32648:1fa861caf840 32649:2ee9017c7597
   181      * @param name String IPv6 address with optional /<prefix length>
   181      * @param name String IPv6 address with optional /<prefix length>
   182      *             If /<prefix length> is present, address[] array will
   182      *             If /<prefix length> is present, address[] array will
   183      *             be 32 bytes long, otherwise 16.
   183      *             be 32 bytes long, otherwise 16.
   184      * @throws IOException on error
   184      * @throws IOException on error
   185      */
   185      */
   186     private final static int MASKSIZE = 16;
   186     private static final int MASKSIZE = 16;
   187     private void parseIPv6(String name) throws IOException {
   187     private void parseIPv6(String name) throws IOException {
   188 
   188 
   189         int slashNdx = name.indexOf('/');
   189         int slashNdx = name.indexOf('/');
   190         if (slashNdx == -1) {
   190         if (slashNdx == -1) {
   191             address = InetAddress.getByName(name).getAddress();
   191             address = InetAddress.getByName(name).getAddress();