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:
Phillip Webb 2017-05-01 20:12:56 -07:00
parent 6cdb02050d
commit 53fd1f7f2e
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}