[onebusaway] Remove org.apache.common (#14419)

Signed-off-by: lsiepel <leosiepel@gmail.com>
This commit is contained in:
lsiepel 2023-02-19 21:14:16 +01:00 committed by GitHub
parent dd7bb9c6a2
commit c3624e7397
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 14 deletions

View File

@ -14,8 +14,6 @@ package org.openhab.binding.onebusaway.internal.config;
import static org.openhab.binding.onebusaway.internal.OneBusAwayBindingConstants.*; 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. * The {@link ApiConfiguration} defines the model for an API bridge configuration.
* *
@ -55,7 +53,7 @@ public class ApiConfiguration {
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this).append(API_CONFIG_API_KEY, this.getApiKey()) return getClass().getSimpleName() + "{ " + API_CONFIG_API_KEY + "=" + this.getApiKey() + ", "
.append(API_CONFIG_API_SERVER, this.getApiServer()).toString(); + API_CONFIG_API_SERVER + "=" + this.getApiServer() + "}";
} }
} }

View File

@ -14,8 +14,6 @@ package org.openhab.binding.onebusaway.internal.config;
import static org.openhab.binding.onebusaway.internal.OneBusAwayBindingConstants.CHANNEL_CONFIG_OFFSET; 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. * The {@link ChannelConfig} defines the model for a channel configuration.
* *
@ -40,6 +38,6 @@ public class ChannelConfig {
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this).append(CHANNEL_CONFIG_OFFSET, this.getOffset()).toString(); return getClass().getSimpleName() + "{ " + CHANNEL_CONFIG_OFFSET + "=" + this.getOffset() + "}";
} }
} }

View 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 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. * The {@link RouteConfiguration} defines the model for a route stop configuration.
* *
@ -41,6 +39,6 @@ public class RouteConfiguration {
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this).append(ROUTE_CONFIG_ROUTE_ID, this.getRouteId()).toString(); return getClass().getSimpleName() + "{ " + ROUTE_CONFIG_ROUTE_ID + "=" + this.getRouteId() + "}";
} }
} }

View File

@ -14,8 +14,6 @@ package org.openhab.binding.onebusaway.internal.config;
import static org.openhab.binding.onebusaway.internal.OneBusAwayBindingConstants.*; 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. * The {@link StopConfiguration} defines the model for a stop bridge configuration.
* *
@ -56,7 +54,7 @@ public class StopConfiguration {
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this).append(STOP_CONFIG_INTERVAL, this.getInterval()) return getClass().getSimpleName() + "{ " + STOP_CONFIG_INTERVAL + "=" + this.getInterval() + ", "
.append(STOP_CONFIG_ID, this.getStopId()).toString(); + STOP_CONFIG_ID + "=" + this.getStopId() + "}";
} }
} }