<BUG>package org.openstreetmap.josm.data.validation.routines;
public class InetAddressValidator extends AbstractValidator {
private static final String IPV4_REGEX =
"^(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})$";
private static final InetAddressValidator VALIDATOR = new InetAddressValidator();</BUG>
private final RegexValidator ipv4Validator = new RegexValidator(IPV4_REGEX);

package org.openstreetmap.josm.data.validation.routines;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class InetAddressValidator extends AbstractValidator {
private static final int IPV4_MAX_OCTET_VALUE = 255;
private static final int MAX_UNSIGNED_SHORT = 0xffff;
private static final int BASE_16 = 16;
private static final String IPV4_REGEX =
"^(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})$";
private static final int IPV6_MAX_HEX_GROUPS = 8;
private static final int IPV6_MAX_HEX_DIGITS_PER_GROUP = 4;
private static final InetAddressValidator VALIDATOR = new InetAddressValidator();
private final RegexValidator ipv4Validator = new RegexValidator(IPV4_REGEX);
