Skip to content

Commit

Permalink
[onkyo] Remove org.apache.common (#14420)
Browse files Browse the repository at this point in the history
Signed-off-by: lsiepel <[email protected]>
  • Loading branch information
lsiepel authored Feb 19, 2023
1 parent e776680 commit dd7bb9c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
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;
Expand Down Expand Up @@ -143,6 +142,6 @@ private ThingTypeUID findThingType(@Nullable String deviceModel) {
*/
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()));
}
}

0 comments on commit dd7bb9c

Please sign in to comment.