src/main/java/co/elastic/support/scrub/ScrubProcessor.java [156:170]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        StringBuffer newIp = new StringBuffer();
        String[] ipSegments = input.split("\\.");
        for (int i = 0; i < 4; i++) {
            int set = Integer.parseInt(ipSegments[i]);
            if (!ipv4.containsKey(set)) {
                logger.info("Error converting ip segment {} from address: {}", Integer.toString(set));
                throw new RuntimeException("Error scrubbing IP Addresses");
            }
            int replace = ipv4.get(set);
            newIp.append(replace);
            if (i < 3) {
                newIp.append(".");
            }
        }
        return newIp.toString();
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/co/elastic/support/scrub/ScrubProcessor.java [369:383]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            StringBuffer newIp = new StringBuffer();
            String[] ipSegments = input.split("\\.");
            for (int i = 0; i < 4; i++) {
                int set = Integer.parseInt(ipSegments[i]);
                if (!ipv4.containsKey(set)) {
                    logger.info("Error converting ip segment {} from address: {}", Integer.toString(set));
                    throw new RuntimeException("Error scrubbing IP Addresses");
                }
                int replace = ipv4.get(set);
                newIp.append(replace);
                if (i < 3) {
                    newIp.append(".");
                }
            }
            return newIp.toString();
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



