diff --git a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/resources/CompressedGlobTrie/CompressedGlobTrie.java b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/resources/CompressedGlobTrie/CompressedGlobTrie.java index 7a8f14d4cfbb..3486894bad06 100644 --- a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/resources/CompressedGlobTrie/CompressedGlobTrie.java +++ b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/resources/CompressedGlobTrie/CompressedGlobTrie.java @@ -532,7 +532,7 @@ private static List matchOneLevel(StarTrieNode node, String wholeL /* match prefix first */ String nodeContent = node.getContent(); String prefix = nodeContent.substring(0, nodeContent.indexOf(STAR.charAt(0))); - if (!prefix.equals("*") && !wholeLevel.startsWith(prefix)) { + if (!prefix.equals(STAR) && !wholeLevel.startsWith(prefix)) { /* can't match prefix */ return Collections.emptyList(); }