Skip to content

Commit

Permalink
add Nullable to new getParameterAsConcatString method
Browse files Browse the repository at this point in the history
  • Loading branch information
jpdahlke committed Dec 24, 2024
1 parent 5c56e40 commit ef957fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/emissary/core/IBaseDataObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import java.util.Set;
import java.util.UUID;
import java.util.stream.Collectors;
import javax.annotation.Nullable;

public interface IBaseDataObject {

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit ef957fd

Please sign in to comment.