[Minor] ObjectFilter has a default cache of 1

This commit is contained in:
Robert von Burg 2023-04-05 21:03:27 +02:00
parent 98ff483ed6
commit 7db2e3aa1b
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 2 additions and 2 deletions

View File

@ -91,8 +91,8 @@ public class ObjectFilter {
* Default constructor initializing the filter
*/
public ObjectFilter() {
this.cache = new MapOfMaps<>();
this.keySet = new HashSet<>();
this.cache = new MapOfMaps<>(1);
this.keySet = new HashSet<>(1);
}
private void replaceKey(ObjectCache cached, Object newObjectKey, Object newObject) {