Skip to content

Commit

Permalink
use ToStringBuilder and reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
abyrd committed Mar 14, 2024
1 parent 652e83b commit c80651c
Showing 1 changed file with 7 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import org.eclipse.paho.client.mqttv3.MqttException;
import org.eclipse.paho.client.mqttv3.MqttMessage;
import org.eclipse.paho.client.mqttv3.persist.MemoryPersistence;
import org.opentripplanner.framework.tostring.ToStringBuilder;
import org.opentripplanner.transit.service.DefaultTransitService;
import org.opentripplanner.transit.service.TransitModel;
import org.opentripplanner.updater.GtfsRealtimeFuzzyTripMatcher;
Expand Down Expand Up @@ -191,18 +192,11 @@ public void deliveryComplete(IMqttDeliveryToken token) {}

@Override
public String toString() {
return (
"MqttGtfsRealtimeUpdater{" +
"url='" +
url +
'\'' +
", topic='" +
topic +
'\'' +
", feedId='" +
feedId +
'\'' +
'}'
);
return ToStringBuilder
.of(MqttGtfsRealtimeUpdater.class)
.addStr("url", url)
.addStr("topic", topic)
.addStr("feedId", feedId)
.toString();
}
}

0 comments on commit c80651c

Please sign in to comment.