]> git.basschouten.com Git - openhab-addons.git/commitdiff
[onebusaway] Remove org.apache.common (#14419)
authorlsiepel <leosiepel@gmail.com>
Sun, 19 Feb 2023 20:14:16 +0000 (21:14 +0100)
committerGitHub <noreply@github.com>
Sun, 19 Feb 2023 20:14:16 +0000 (21:14 +0100)
Signed-off-by: lsiepel <leosiepel@gmail.com>
bundles/org.openhab.binding.onebusaway/src/main/java/org/openhab/binding/onebusaway/internal/config/ApiConfiguration.java
bundles/org.openhab.binding.onebusaway/src/main/java/org/openhab/binding/onebusaway/internal/config/ChannelConfig.java
bundles/org.openhab.binding.onebusaway/src/main/java/org/openhab/binding/onebusaway/internal/config/RouteConfiguration.java
bundles/org.openhab.binding.onebusaway/src/main/java/org/openhab/binding/onebusaway/internal/config/StopConfiguration.java

index ba364e238dfb52aa84ee693b0b345a2a1205553a..2cabb96fad120720bef4edb82fa282e9ad0a6021 100644 (file)
@@ -14,8 +14,6 @@ package org.openhab.binding.onebusaway.internal.config;
 
 import static org.openhab.binding.onebusaway.internal.OneBusAwayBindingConstants.*;
 
-import org.apache.commons.lang3.builder.ToStringBuilder;
-
 /**
  * The {@link ApiConfiguration} defines the model for an API bridge configuration.
  *
@@ -55,7 +53,7 @@ public class ApiConfiguration {
 
     @Override
     public String toString() {
-        return new ToStringBuilder(this).append(API_CONFIG_API_KEY, this.getApiKey())
-                .append(API_CONFIG_API_SERVER, this.getApiServer()).toString();
+        return getClass().getSimpleName() + "{ " + API_CONFIG_API_KEY + "=" + this.getApiKey() + ", "
+                + API_CONFIG_API_SERVER + "=" + this.getApiServer() + "}";
     }
 }
index 24a22183aca7831a9abcffe5bcc90b7dcd7824e2..6125e9e3d7caaa89512e3421bcee9847d51dde94 100644 (file)
@@ -14,8 +14,6 @@ package org.openhab.binding.onebusaway.internal.config;
 
 import static org.openhab.binding.onebusaway.internal.OneBusAwayBindingConstants.CHANNEL_CONFIG_OFFSET;
 
-import org.apache.commons.lang3.builder.ToStringBuilder;
-
 /**
  * The {@link ChannelConfig} defines the model for a channel configuration.
  *
@@ -40,6 +38,6 @@ public class ChannelConfig {
 
     @Override
     public String toString() {
-        return new ToStringBuilder(this).append(CHANNEL_CONFIG_OFFSET, this.getOffset()).toString();
+        return getClass().getSimpleName() + "{ " + CHANNEL_CONFIG_OFFSET + "=" + this.getOffset() + "}";
     }
 }
index 0e674ab1c8adb3f061bbad0395810032ec8d12ed..1d7ee188212c832e56390a5d4cd367acf2d19901 100644 (file)
@@ -14,8 +14,6 @@ package org.openhab.binding.onebusaway.internal.config;
 
 import static org.openhab.binding.onebusaway.internal.OneBusAwayBindingConstants.ROUTE_CONFIG_ROUTE_ID;
 
-import org.apache.commons.lang3.builder.ToStringBuilder;
-
 /**
  * The {@link RouteConfiguration} defines the model for a route stop configuration.
  *
@@ -41,6 +39,6 @@ public class RouteConfiguration {
 
     @Override
     public String toString() {
-        return new ToStringBuilder(this).append(ROUTE_CONFIG_ROUTE_ID, this.getRouteId()).toString();
+        return getClass().getSimpleName() + "{ " + ROUTE_CONFIG_ROUTE_ID + "=" + this.getRouteId() + "}";
     }
 }
index 75c5978fdf733086faa428294c808a4f7e6a1ebb..42b38e07f8b105cd4cd15f5fea48034e22268546 100644 (file)
@@ -14,8 +14,6 @@ package org.openhab.binding.onebusaway.internal.config;
 
 import static org.openhab.binding.onebusaway.internal.OneBusAwayBindingConstants.*;
 
-import org.apache.commons.lang3.builder.ToStringBuilder;
-
 /**
  * The {@link StopConfiguration} defines the model for a stop bridge configuration.
  *
@@ -56,7 +54,7 @@ public class StopConfiguration {
 
     @Override
     public String toString() {
-        return new ToStringBuilder(this).append(STOP_CONFIG_INTERVAL, this.getInterval())
-                .append(STOP_CONFIG_ID, this.getStopId()).toString();
+        return getClass().getSimpleName() + "{ " + STOP_CONFIG_INTERVAL + "=" + this.getInterval() + ", "
+                + STOP_CONFIG_ID + "=" + this.getStopId() + "}";
     }
 }