From 94c8ac4157e35468f04f1fe90fb1e72fcf5e5f2d Mon Sep 17 00:00:00 2001 From: Thorsten Marx Date: Mon, 1 Jul 2024 11:01:35 +0200 Subject: [PATCH] #217 refactor sonar issues --- .../thmarx/cms/filesystem/metadata/memory/MemoryQuery.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cms-filesystem/src/main/java/com/github/thmarx/cms/filesystem/metadata/memory/MemoryQuery.java b/cms-filesystem/src/main/java/com/github/thmarx/cms/filesystem/metadata/memory/MemoryQuery.java index 683f22a3..72c1525e 100644 --- a/cms-filesystem/src/main/java/com/github/thmarx/cms/filesystem/metadata/memory/MemoryQuery.java +++ b/cms-filesystem/src/main/java/com/github/thmarx/cms/filesystem/metadata/memory/MemoryQuery.java @@ -52,7 +52,7 @@ public MemoryQuery(Collection nodes, BiFunction nodes, ExcerptMapperFunction nodeMapper) { - this(new QueryContext(nodes, nodeMapper, Constants.DEFAULT_CONTENT_TYPE)); + this(new QueryContext<>(nodes, nodeMapper, Constants.DEFAULT_CONTENT_TYPE)); } public MemoryQuery(QueryContext context) { @@ -111,7 +111,7 @@ public MemoryQuery whereNotIn(final String field, final List value) { } private MemoryQuery where(final String field, final Queries.Operator operator, final Object value) { - return new MemoryQuery(filtered(context, field, value, operator)); + return new MemoryQuery<>(filtered(context, field, value, operator)); }