From 4401de57aaa8f273bf2f5fec179d9647f4c64c4e Mon Sep 17 00:00:00 2001 From: lsiepel Date: Tue, 25 Jun 2024 21:06:41 +0200 Subject: [PATCH] [fineoffsetweatherstation] Replace apache.commons (#16923) Signed-off-by: Leo Siepel --- .../internal/domain/DebugDetails.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.binding.fineoffsetweatherstation/src/main/java/org/openhab/binding/fineoffsetweatherstation/internal/domain/DebugDetails.java b/bundles/org.openhab.binding.fineoffsetweatherstation/src/main/java/org/openhab/binding/fineoffsetweatherstation/internal/domain/DebugDetails.java index 51ed3a1119..9f6fa08a37 100644 --- a/bundles/org.openhab.binding.fineoffsetweatherstation/src/main/java/org/openhab/binding/fineoffsetweatherstation/internal/domain/DebugDetails.java +++ b/bundles/org.openhab.binding.fineoffsetweatherstation/src/main/java/org/openhab/binding/fineoffsetweatherstation/internal/domain/DebugDetails.java @@ -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; } -- 2.47.3