Skip to content

Commit

Permalink
[Configuration] Fix unknown key detection not working
Browse files Browse the repository at this point in the history
  • Loading branch information
NEZNAMY committed Nov 9, 2024
1 parent 409f1c4 commit 96a39d7
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ public class ConfigurationSection {
@NotNull private final Map<Object, Object> map;

public void checkForUnknownKey(@NotNull List<String> validProperties) {
Map<Object, ?> map = getMap(section);
if (map == null) return;
for (Object mapKey : map.keySet()) {
if (!validProperties.contains(mapKey.toString())) {
startupWarn(String.format("Configuration section \"%s\" has unknown key \"%s\". Valid keys: %s", section, mapKey, validProperties));
Expand Down

0 comments on commit 96a39d7

Please sign in to comment.