We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5aef5e commit 9cbac98Copy full SHA for 9cbac98
spring-core/src/main/java/org/springframework/util/AntPathMatcher.java
@@ -279,7 +279,7 @@ protected AntPathStringMatcher getStringMatcher(String pattern) {
279
}
280
if (matcher == null) {
281
matcher = new AntPathStringMatcher(pattern);
282
- if (cachePatterns == null && this.stringMatcherCache.size() == CACHE_TURNOFF_THRESHOLD) {
+ if (cachePatterns == null && this.stringMatcherCache.size() >= CACHE_TURNOFF_THRESHOLD) {
283
// Try to adapt to the runtime situation that we're encountering:
284
// There are obviously too many different paths coming in here...
285
// So let's turn off the cache since the patterns are unlikely to be reoccurring.
0 commit comments