public static void throwIfNotEmpty()

in log4j-converter-config/src/main/java/org/apache/logging/converter/config/internal/PropertiesUtils.java [65:81]


    public static void throwIfNotEmpty(PropertiesSubset subset) {
        Properties properties = subset.getProperties();
        if (!properties.isEmpty()) {
            String prefix = subset.getPrefix();
            if (properties.size() == 1) {
                throw new ConfigurationConverterException("Unknown configuration property '"
                        + addPrefixes(
                                prefix,
                                properties.stringPropertyNames().iterator().next()) + "'.");
            }
            StringBuilder messageBuilder = new StringBuilder("Unknown configuration properties:");
            properties.stringPropertyNames().stream()
                    .map(k -> addPrefixes(prefix, k))
                    .forEach(k -> messageBuilder.append("\n\t").append(k));
            throw new ConfigurationConverterException(messageBuilder.toString());
        }
    }