Make *_PRESENT fields constant at build time
See gh-28624
This commit is contained in:
parent
92cf1e13e8
commit
8d08b1d323
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue