From ef957fdf0274748658dd370ca696f6f51dcf474a Mon Sep 17 00:00:00 2001 From: Jason Dahlke Date: Tue, 24 Dec 2024 03:40:59 +0000 Subject: [PATCH] add Nullable to new getParameterAsConcatString method --- src/main/java/emissary/core/IBaseDataObject.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/emissary/core/IBaseDataObject.java b/src/main/java/emissary/core/IBaseDataObject.java index f925b77d9..50571089d 100755 --- a/src/main/java/emissary/core/IBaseDataObject.java +++ b/src/main/java/emissary/core/IBaseDataObject.java @@ -17,6 +17,7 @@ import java.util.Set; import java.util.UUID; import java.util.stream.Collectors; +import javax.annotation.Nullable; public interface IBaseDataObject { @@ -415,6 +416,7 @@ default String getParameterAsConcatString(final String key) { * @param sep the separator for multivalued fields * @return the string value or null if no such element */ + @Nullable default String getParameterAsConcatString(final String key, final String sep) { final var strParameter = String.join(sep, getParameterAsStrings(key)); return StringUtils.isBlank(strParameter) ? null : strParameter;