Skip to content

Commit

Permalink
Remove apache.commons (openhab#16919)
Browse files Browse the repository at this point in the history
Signed-off-by: Leo Siepel <[email protected]>
  • Loading branch information
lsiepel authored Jun 23, 2024
1 parent bf82221 commit e23b550
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import java.util.List;
import java.util.Optional;

import org.apache.commons.lang3.StringUtils;
import org.eclipse.jdt.annotation.NonNullByDefault;

/**
Expand Down Expand Up @@ -46,7 +45,7 @@ public long getLastUpdated() {
}

public Optional<SensiboSky> findSensiboSkyByMacAddress(final String macAddress) {
final String macAddressWithoutColons = StringUtils.remove(macAddress, ':');
final String macAddressWithoutColons = macAddress.replace(":", "");
return pods.stream().filter(pod -> macAddressWithoutColons.equals(pod.getMacAddress())).findFirst();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import javax.measure.Unit;
import javax.measure.quantity.Temperature;

import org.apache.commons.lang3.StringUtils;
import org.eclipse.jdt.annotation.NonNullByDefault;
import org.openhab.binding.sensibo.internal.SensiboTemperatureUnitConverter;
import org.openhab.binding.sensibo.internal.dto.poddetails.ModeCapabilityDTO;
Expand Down Expand Up @@ -55,7 +54,7 @@ public class SensiboSky extends Pod {

public SensiboSky(final PodDetailsDTO dto) {
super(dto.id);
this.macAddress = StringUtils.remove(dto.macAddress, ':');
this.macAddress = dto.macAddress.replace(":", "");
this.firmwareVersion = dto.firmwareVersion;
this.firmwareType = dto.firmwareType;
this.serialNumber = dto.serialNumber;
Expand Down

0 comments on commit e23b550

Please sign in to comment.