]> git.basschouten.com Git - openhab-addons.git/commitdiff
[onkyo] Remove org.apache.common (#14420)
authorlsiepel <leosiepel@gmail.com>
Sun, 19 Feb 2023 20:11:21 +0000 (21:11 +0100)
committerGitHub <noreply@github.com>
Sun, 19 Feb 2023 20:11:21 +0000 (21:11 +0100)
Signed-off-by: lsiepel <leosiepel@gmail.com>
bundles/org.openhab.binding.onkyo/src/main/java/org/openhab/binding/onkyo/internal/discovery/OnkyoUpnpDiscoveryParticipant.java

index d3f36111768ff103c515e6e192ced1267223af5d..7bae092054a171e6c63e0936a83b77ec144e7da6 100644 (file)
@@ -20,7 +20,6 @@ import java.util.HashSet;
 import java.util.Map;
 import java.util.Set;
 
-import org.apache.commons.lang3.StringUtils;
 import org.eclipse.jdt.annotation.NonNullByDefault;
 import org.eclipse.jdt.annotation.Nullable;
 import org.jupnp.model.meta.RemoteDevice;
@@ -143,6 +142,6 @@ public class OnkyoUpnpDiscoveryParticipant implements UpnpDiscoveryParticipant {
      */
     private boolean isSupportedDeviceModel(final @Nullable String deviceModel) {
         return deviceModel != null && !deviceModel.isBlank() && Arrays.stream(OnkyoModel.values())
-                .anyMatch(model -> StringUtils.startsWithIgnoreCase(deviceModel, model.getId()));
+                .anyMatch(model -> deviceModel.toLowerCase().startsWith(model.getId().toLowerCase()));
     }
 }