From 7db2e3aa1b58352d9bcd95e7b30cce22856f5a4d Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Wed, 5 Apr 2023 21:03:27 +0200 Subject: [PATCH] [Minor] ObjectFilter has a default cache of 1 --- .../main/java/li/strolch/utils/objectfilter/ObjectFilter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/src/main/java/li/strolch/utils/objectfilter/ObjectFilter.java b/utils/src/main/java/li/strolch/utils/objectfilter/ObjectFilter.java index 32bccfe38..0ea59844c 100644 --- a/utils/src/main/java/li/strolch/utils/objectfilter/ObjectFilter.java +++ b/utils/src/main/java/li/strolch/utils/objectfilter/ObjectFilter.java @@ -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) {