diff --git a/src/main/java/xyz/wagyourtail/jvmdg/cli/Flags.java b/src/main/java/xyz/wagyourtail/jvmdg/cli/Flags.java index 6df7431a..8997bb6c 100644 --- a/src/main/java/xyz/wagyourtail/jvmdg/cli/Flags.java +++ b/src/main/java/xyz/wagyourtail/jvmdg/cli/Flags.java @@ -193,6 +193,9 @@ public File findJavaApi() { } public boolean checkInIgnoreWarnings(String className) { + // find the entry that is <= the className, because a treeSet is sorted, this is either className, + // a prefix of classname, a random other string that is less than className, ie. "aaa" < "bbb", or null if there + // is no entries that are <= className in the map Map.Entry entry = ignoreWarningsIn.floorEntry(className); if (entry != null && className.startsWith(entry.getKey())) { switch (entry.getValue()) {