[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 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() + "}";
}
}

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 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() + "}";
}
}

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 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() + "}";
}
}

View 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() + "}";
}
}