Make *_PRESENT fields constant at build time

See gh-28624
This commit is contained in:
Sébastien Deleuze 2022-06-29 12:31:27 +02:00
parent 92cf1e13e8
commit 8d08b1d323
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@ class ConstantFieldSubstitutionProcessor extends SubstitutionProcessor {
private static Pattern[] patterns = {
Pattern.compile(Pattern.quote("org.springframework.core.NativeDetector#imageCode")),
Pattern.compile(Pattern.quote("org.springframework.") + ".*#.*Present"),
Pattern.compile(Pattern.quote("org.springframework.") + ".*#.*_PRESENT")
};
private final ThrowawayClassLoader throwawayClassLoader;