[onkyo] Remove org.apache.common (#14420)

Signed-off-by: lsiepel <leosiepel@gmail.com>
This commit is contained in:
lsiepel 2023-02-19 21:11:21 +01:00 committed by GitHub
parent e776680dc2
commit dd7bb9c6a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View 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()));
}
}