mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Matthew Swift
27.58.2014 ed189eaae20de77e8f2566f7fc181475fb46010d
Minor fixes based on feedback from Jean-Noel.
1 files modified
4 ■■■■ changed files
opendj-core/src/main/java/org/forgerock/opendj/ldap/AddressMask.java 4 ●●●● patch | view | raw | blame | history
opendj-core/src/main/java/org/forgerock/opendj/ldap/AddressMask.java
@@ -433,13 +433,13 @@
        // Try to avoid calling InetAddress.getByName() because it may do a reverse lookup.
        final String ipv6Literal;
        if (address.charAt(0) == '[' && address.charAt(address.length() - 1) == ']') {
            // isIPv4LiteralAddress must be invoked without surrounding brackets.
            // isIPv6LiteralAddress must be invoked without surrounding brackets.
            ipv6Literal = address.substring(1, address.length() - 1);
        } else {
            ipv6Literal = address;
        }
        Boolean isValid;
        boolean isValid;
        try {
            // Use reflection to avoid dependency on Sun JRE.
            final Class<?> ipUtils = Class.forName("sun.net.util.IPAddressUtil");