From 737e4b738ac9a7189101a74d5bc129b65173a050 Mon Sep 17 00:00:00 2001 From: lsiepel Date: Fri, 17 Feb 2023 15:39:41 +0100 Subject: [PATCH 1/2] Remove org.apache.common Signed-off-by: lsiepel --- .../internal/config/NibeUplinkConfiguration.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bundles/org.openhab.binding.nibeuplink/src/main/java/org/openhab/binding/nibeuplink/internal/config/NibeUplinkConfiguration.java b/bundles/org.openhab.binding.nibeuplink/src/main/java/org/openhab/binding/nibeuplink/internal/config/NibeUplinkConfiguration.java index 28934c05b3acc..51c626513a041 100644 --- a/bundles/org.openhab.binding.nibeuplink/src/main/java/org/openhab/binding/nibeuplink/internal/config/NibeUplinkConfiguration.java +++ b/bundles/org.openhab.binding.nibeuplink/src/main/java/org/openhab/binding/nibeuplink/internal/config/NibeUplinkConfiguration.java @@ -12,7 +12,6 @@ */ package org.openhab.binding.nibeuplink.internal.config; -import org.apache.commons.lang3.builder.ToStringBuilder; import org.eclipse.jdt.annotation.NonNullByDefault; import org.eclipse.jdt.annotation.Nullable; @@ -91,9 +90,9 @@ public void setHouseKeepingInterval(Integer houseKeepingInterval) { @Override public String toString() { - return new ToStringBuilder(this).append("user", getUser()).append("password", getPassword()) - .append("nibeId", getNibeId()).append("pollingInterval", getPollingInterval()) - .append("houseKeepingInterval", getHouseKeepingInterval()).append("asyncTimeout", getAsyncTimeout()) - .append("syncTimeout", getSyncTimeout()).toString(); + return getClass().getSimpleName() + "{ user=" + getUser() + ", password=" + getPassword() + ", nibeId='" + + getNibeId() + ", pollingInterval=" + getPollingInterval() + ", houseKeepingInterval=" + + getHouseKeepingInterval() + ", asyncTimeout=" + getAsyncTimeout() + ", syncTimeout=" + + getSyncTimeout().toString() + "}"; } } From 47cde5f7884ca8f60d0350f82de4c1af9ec0ab31 Mon Sep 17 00:00:00 2001 From: lsiepel Date: Sun, 19 Feb 2023 21:45:14 +0100 Subject: [PATCH 2/2] Fix comments Signed-off-by: lsiepel --- .../nibeuplink/internal/config/NibeUplinkConfiguration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.binding.nibeuplink/src/main/java/org/openhab/binding/nibeuplink/internal/config/NibeUplinkConfiguration.java b/bundles/org.openhab.binding.nibeuplink/src/main/java/org/openhab/binding/nibeuplink/internal/config/NibeUplinkConfiguration.java index 51c626513a041..9e4ed2b3c0f21 100644 --- a/bundles/org.openhab.binding.nibeuplink/src/main/java/org/openhab/binding/nibeuplink/internal/config/NibeUplinkConfiguration.java +++ b/bundles/org.openhab.binding.nibeuplink/src/main/java/org/openhab/binding/nibeuplink/internal/config/NibeUplinkConfiguration.java @@ -90,9 +90,9 @@ public void setHouseKeepingInterval(Integer houseKeepingInterval) { @Override public String toString() { - return getClass().getSimpleName() + "{ user=" + getUser() + ", password=" + getPassword() + ", nibeId='" + return getClass().getSimpleName() + "{ user=" + getUser() + ", password=" + getPassword() + ", nibeId=" + getNibeId() + ", pollingInterval=" + getPollingInterval() + ", houseKeepingInterval=" + getHouseKeepingInterval() + ", asyncTimeout=" + getAsyncTimeout() + ", syncTimeout=" - + getSyncTimeout().toString() + "}"; + + getSyncTimeout() + "}"; } }