[fineoffsetweatherstation] Replace apache.commons (#16923)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>pull/16403/merge
parent
6ccaf813e6
commit
4401de57aa
|
@ -17,8 +17,8 @@ import java.util.Map;
|
||||||
import java.util.TreeMap;
|
import java.util.TreeMap;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
|
||||||
import org.openhab.binding.fineoffsetweatherstation.internal.Utils;
|
import org.openhab.binding.fineoffsetweatherstation.internal.Utils;
|
||||||
|
import org.openhab.core.util.StringUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class to collect debug details
|
* Class to collect debug details
|
||||||
|
@ -71,7 +71,7 @@ public class DebugDetails {
|
||||||
private String toDebugString(int padding) {
|
private String toDebugString(int padding) {
|
||||||
String result = "0x";
|
String result = "0x";
|
||||||
String hexString = Utils.toHexString(Arrays.copyOfRange(data, start, start + length), length, "");
|
String hexString = Utils.toHexString(Arrays.copyOfRange(data, start, start + length), length, "");
|
||||||
result += StringUtils.rightPad(hexString, padding, " ");
|
result += StringUtils.padRight(hexString, padding, " ");
|
||||||
result += ": " + description;
|
result += ": " + description;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue