From 163559547ca475b04678593840233ab4429ff3a7 Mon Sep 17 00:00:00 2001 From: Wagyourtail Date: Mon, 8 Jul 2024 10:40:26 -0500 Subject: [PATCH] add explanation --- src/main/java/xyz/wagyourtail/jvmdg/cli/Flags.java | 3 +++ 1 file changed, 3 insertions(+) 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()) {