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 1f8984d79dcdf..9534cbbc51a3c 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 void setUsePrivateApi(boolean usePrivateApi) { @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() + "}"; } }