From e776680dc2b9ea0eb4f44f368803ddbdd488b210 Mon Sep 17 00:00:00 2001 From: lsiepel Date: Sun, 19 Feb 2023 21:07:59 +0100 Subject: [PATCH] [pentair] Remove org.apache.common (#14421) Signed-off-by: lsiepel --- .../pentair/internal/config/PentairIPBridgeConfig.java | 4 +--- .../pentair/internal/config/PentairSerialBridgeConfig.java | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/bundles/org.openhab.binding.pentair/src/main/java/org/openhab/binding/pentair/internal/config/PentairIPBridgeConfig.java b/bundles/org.openhab.binding.pentair/src/main/java/org/openhab/binding/pentair/internal/config/PentairIPBridgeConfig.java index 88e57ceaa23df..6c3d4aad92d96 100644 --- a/bundles/org.openhab.binding.pentair/src/main/java/org/openhab/binding/pentair/internal/config/PentairIPBridgeConfig.java +++ b/bundles/org.openhab.binding.pentair/src/main/java/org/openhab/binding/pentair/internal/config/PentairIPBridgeConfig.java @@ -12,8 +12,6 @@ */ package org.openhab.binding.pentair.internal.config; -import org.apache.commons.lang3.builder.ToStringBuilder; - /** * Configuration parameters for IP Bridge * @@ -31,6 +29,6 @@ public class PentairIPBridgeConfig { @Override public String toString() { - return new ToStringBuilder(this).append("address", address).append("port", port).append("id", id).toString(); + return getClass().getSimpleName() + "{ address=" + address + ", port=" + port + ", id=" + id + "}"; } } diff --git a/bundles/org.openhab.binding.pentair/src/main/java/org/openhab/binding/pentair/internal/config/PentairSerialBridgeConfig.java b/bundles/org.openhab.binding.pentair/src/main/java/org/openhab/binding/pentair/internal/config/PentairSerialBridgeConfig.java index 9c2e36ba09a9c..13028160bd9c1 100644 --- a/bundles/org.openhab.binding.pentair/src/main/java/org/openhab/binding/pentair/internal/config/PentairSerialBridgeConfig.java +++ b/bundles/org.openhab.binding.pentair/src/main/java/org/openhab/binding/pentair/internal/config/PentairSerialBridgeConfig.java @@ -12,8 +12,6 @@ */ package org.openhab.binding.pentair.internal.config; -import org.apache.commons.lang3.builder.ToStringBuilder; - /** * Configuration parameters for Serial Bridge * @@ -28,6 +26,6 @@ public class PentairSerialBridgeConfig { @Override public String toString() { - return new ToStringBuilder(this).append("serialPort", serialPort).append("id", id).toString(); + return getClass().getSimpleName() + "{ serialPort=" + serialPort + ", id=" + id + "}"; } }