Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[onebusaway] Remove org.apache.common #14419

Merged
merged 1 commit into from
Feb 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

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.
*
Expand Down Expand Up @@ -55,7 +53,7 @@ public void setApiServer(String apiServer) {

@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() + "}";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

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.
*
Expand All @@ -40,6 +38,6 @@ public void setOffset(Integer offset) {

@Override
public String toString() {
return new ToStringBuilder(this).append(CHANNEL_CONFIG_OFFSET, this.getOffset()).toString();
return getClass().getSimpleName() + "{ " + CHANNEL_CONFIG_OFFSET + "=" + this.getOffset() + "}";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

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.
*
Expand All @@ -41,6 +39,6 @@ public void setRouteId(String routeId) {

@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() + "}";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

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.
*
Expand Down Expand Up @@ -56,7 +54,7 @@ public void setStopId(String stopId) {

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