Skip to content

Commit

Permalink
adapt to core StringUtils (openhab#15766)
Browse files Browse the repository at this point in the history
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
  • Loading branch information
lsiepel authored and austvik committed Mar 27, 2024
1 parent c99990e commit 042ea02
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 72 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Collectors;

import org.eclipse.jdt.annotation.NonNullByDefault;
import org.eclipse.jdt.annotation.Nullable;
import org.openhab.binding.upnpcontrol.internal.util.StringUtils;
import org.openhab.core.util.StringUtils;

/**
*
Expand Down Expand Up @@ -178,7 +179,7 @@ public String getAlbum() {
* @return the URI for the album art.
*/
public String getAlbumArtUri() {
return StringUtils.unEscapeXml(albumArtUri);
return Objects.requireNonNull(StringUtils.unEscapeXml(albumArtUri));
}

/**
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import org.eclipse.jdt.annotation.Nullable;
import org.openhab.binding.upnpcontrol.internal.queue.UpnpEntry;
import org.openhab.binding.upnpcontrol.internal.queue.UpnpEntryRes;
import org.openhab.core.util.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.xml.sax.Attributes;
Expand Down

0 comments on commit 042ea02

Please sign in to comment.