From 38915f500912e7db224fdac328fc080b97d3812e Mon Sep 17 00:00:00 2001 From: lsiepel Date: Fri, 10 Mar 2023 23:39:18 +0100 Subject: [PATCH] Remove org.apache.common (#14437) Signed-off-by: lsiepel --- .../internal/config/SolarEdgeConfiguration.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/bundles/org.openhab.binding.solaredge/src/main/java/org/openhab/binding/solaredge/internal/config/SolarEdgeConfiguration.java b/bundles/org.openhab.binding.solaredge/src/main/java/org/openhab/binding/solaredge/internal/config/SolarEdgeConfiguration.java index 1f8984d79..9534cbbc5 100644 --- a/bundles/org.openhab.binding.solaredge/src/main/java/org/openhab/binding/solaredge/internal/config/SolarEdgeConfiguration.java +++ b/bundles/org.openhab.binding.solaredge/src/main/java/org/openhab/binding/solaredge/internal/config/SolarEdgeConfiguration.java @@ -12,7 +12,6 @@ */ package org.openhab.binding.solaredge.internal.config; -import org.apache.commons.lang3.builder.ToStringBuilder; import org.eclipse.jdt.annotation.NonNullByDefault; import org.eclipse.jdt.annotation.Nullable; @@ -101,10 +100,10 @@ public class SolarEdgeConfiguration { @Override public String toString() { - return new ToStringBuilder(this).append("tokenOrApiKey", getTokenOrApiKey()).append("solarId", getSolarId()) - .append("meterInstalled", isMeterInstalled()).append("usePrivateApi", isUsePrivateApi()) - .append("live data pollingInterval", getLiveDataPollingInterval()) - .append("aggregate data pollingInterval", getAggregateDataPollingInterval()) - .append("asyncTimeout", getAsyncTimeout()).append("syncTimeout", getSyncTimeout()).toString(); + return getClass().getSimpleName() + "{ tokenOrApiKey=" + getTokenOrApiKey() + ", solarId=" + getSolarId() + + ", meterInstalled=" + isMeterInstalled() + ", usePrivateApi=" + isUsePrivateApi() + + ", live data pollingInterval=" + getLiveDataPollingInterval() + ", aggregate data pollingInterval=" + + getAggregateDataPollingInterval() + ", asyncTimeout=" + getAsyncTimeout() + ", syncTimeout=" + + getSyncTimeout() + "}"; } }