From ebfbba6758db28a0ce0eac46d0f111941d2da273 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Prante?= Date: Tue, 1 Aug 2023 11:13:02 +0200 Subject: [PATCH] relax parameter domain check for sub-parameters --- net/src/main/java/org/xbib/net/Parameter.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/net/src/main/java/org/xbib/net/Parameter.java b/net/src/main/java/org/xbib/net/Parameter.java index 04c8bc6..ba97385 100644 --- a/net/src/main/java/org/xbib/net/Parameter.java +++ b/net/src/main/java/org/xbib/net/Parameter.java @@ -200,12 +200,12 @@ public class Parameter implements Iterable>, Comparable>, Comparable getAll(String key, Domain domain) throws Exception { - if (getDomain() == Domain.UNDEFINED) { - throw new ParameterException("undefined domain"); - } Parameter parameter = null; if (builder.parameterMap.containsKey(domain)) { parameter = builder.parameterMap.get(domain); @@ -223,6 +220,9 @@ public class Parameter implements Iterable>, Comparable p.getKey().equals(key)) @@ -248,9 +248,6 @@ public class Parameter implements Iterable>, Comparable>, Comparable optional = list.stream() .filter(p -> key.equals(p.getKey()))