mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-26 20:09:02 +00:00
Fix cache sizing bug
Fix a cache size bug in `DefaultPropertyMapper` which caused the cache to be purged immediately. See gh-9000
This commit is contained in:
+1
-1
@@ -89,7 +89,7 @@ class DefaultPropertyMapper implements PropertyMapper {
|
||||
|
||||
@Override
|
||||
protected boolean removeEldestEntry(Map.Entry<K, List<PropertyMapping>> eldest) {
|
||||
return size() >= this.capacity;
|
||||
return size() > this.capacity;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user