Skip to content

Commit

Permalink
[sonos] adapt to core StringUtils (#15765)
Browse files Browse the repository at this point in the history
* adapt to core StringUtils

---------

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
  • Loading branch information
lsiepel authored Oct 16, 2023
1 parent 84db35d commit 381d8ac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 73 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@
package org.openhab.binding.sonos.internal;

import java.io.Serializable;
import java.util.Objects;

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

/**
* The {@link SonosEntry} is a datastructure to describe
Expand Down Expand Up @@ -120,7 +121,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
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

import org.eclipse.jdt.annotation.NonNullByDefault;
import org.eclipse.jdt.annotation.Nullable;
import org.openhab.binding.sonos.internal.util.StringUtils;
import org.openhab.core.util.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.xml.sax.Attributes;
Expand Down

This file was deleted.

0 comments on commit 381d8ac

Please sign in to comment.