import java.util.TreeMap;
import java.util.stream.Collectors;
-import org.apache.commons.lang3.StringUtils;
import org.openhab.binding.fineoffsetweatherstation.internal.Utils;
+import org.openhab.core.util.StringUtils;
/**
* Class to collect debug details
private String toDebugString(int padding) {
String result = "0x";
String hexString = Utils.toHexString(Arrays.copyOfRange(data, start, start + length), length, "");
- result += StringUtils.rightPad(hexString, padding, " ");
+ result += StringUtils.padRight(hexString, padding, " ");
result += ": " + description;
return result;
}