From 9a6d43794f0eb73e7a3fd12687927977ebde4d69 Mon Sep 17 00:00:00 2001 From: Mahesh Aggarwal Date: Tue, 3 Dec 2024 13:16:42 +0100 Subject: [PATCH] fix build --- .../db/whois/common/rpsl/transform/FilterAuthFunction.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/whois-commons/src/main/java/net/ripe/db/whois/common/rpsl/transform/FilterAuthFunction.java b/whois-commons/src/main/java/net/ripe/db/whois/common/rpsl/transform/FilterAuthFunction.java index 1c919f11dc..74cc7acfeb 100644 --- a/whois-commons/src/main/java/net/ripe/db/whois/common/rpsl/transform/FilterAuthFunction.java +++ b/whois-commons/src/main/java/net/ripe/db/whois/common/rpsl/transform/FilterAuthFunction.java @@ -27,6 +27,7 @@ import javax.annotation.Nonnull; import javax.annotation.concurrent.ThreadSafe; +import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; import java.util.List; @@ -144,7 +145,7 @@ private List getMaintainers(final RpslObject rpslObject) { maintainers.remove(rpslObject.getKey()); if (maintainers.isEmpty()) { - return Collections.emptyList(); + return new ArrayList<>(); } return rpslObjectDao.getByKeys(ObjectType.MNTNER, maintainers);