[Demonstration 1]

[Buggy Method]
public String url() {
    return join(new Object[] { "www", ".", IDN.toASCII(domainName()), ".", domainSuffix() });
}

[Buggy Hunk]
IDN.toASCII(domainName()),

[Patch]
FakerIDN.toASCII(domainName()),

[Demonstration 2]

[Buggy Method]
public static void buildFlattenedMap(Map<String, Object> result, Map<String, Object> source, String path) {
    for (Map.Entry<String, Object> entry : source.entrySet()) {
        String key = entry.getKey();
        if (StringUtils.hasText(path)) {
            if (key.startsWith("[")) {
                key = path + key;
            } else {
                key = path + "." + key;
            }
        }
        Object value = entry.getValue();
        if (value instanceof String) {
            result.put(key, value);
        } else if (value instanceof Map) {
            // Need a compound key
            @SuppressWarnings("unchecked")
            Map<String, Object> map = (Map<String, Object>) value;
            buildFlattenedMap(result, map, key);
            //} else if (value instanceof List) {
            //   result.put(key, value);
        } else if (value instanceof Collection) {
            // Need a compound key
            @SuppressWarnings("unchecked")
            Collection<Object> collection = (Collection<Object>) value;
            int count = 0;
            for (Object object : collection) {
                buildFlattenedMap(result, Collections.singletonMap("[" + (count++) + "]", object), key);
            }
        } else {
            result.put(key, value == null ? "" : value);
        }
    }
}

[Buggy Hunk]
String key = entry.getKey();

[Patch]
String key = entry.getKey().toString();