]> git.basschouten.com Git - openhab-addons.git/commitdiff
[fineoffsetweatherstation] Replace apache.commons (#16923)
authorlsiepel <leosiepel@gmail.com>
Tue, 25 Jun 2024 19:06:41 +0000 (21:06 +0200)
committerGitHub <noreply@github.com>
Tue, 25 Jun 2024 19:06:41 +0000 (21:06 +0200)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
bundles/org.openhab.binding.fineoffsetweatherstation/src/main/java/org/openhab/binding/fineoffsetweatherstation/internal/domain/DebugDetails.java

index 51ed3a1119bebe23f1e9de8b74deb099c7874257..9f6fa08a37c6908467b78e22030068e2f3616c61 100644 (file)
@@ -17,8 +17,8 @@ import java.util.Map;
 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
@@ -71,7 +71,7 @@ public class DebugDetails {
         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;
         }