From 352986138b5eb580af85f9d0650766303c72ea90 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 31 Dec 2016 11:47:20 +1300 Subject: Fix style issues --- src/org/traccar/BasePipelineFactory.java | 6 ++++-- src/org/traccar/GeolocationHandler.java | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'src/org/traccar') diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java index d949c9c9c..a0b42feeb 100644 --- a/src/org/traccar/BasePipelineFactory.java +++ b/src/org/traccar/BasePipelineFactory.java @@ -127,12 +127,14 @@ public abstract class BasePipelineFactory implements ChannelPipelineFactory { if (Context.getGeocoder() != null) { geocoderHandler = new GeocoderHandler( - Context.getGeocoder(), Context.getConfig().getBoolean("geocoder.processInvalidPositions")); + Context.getGeocoder(), + Context.getConfig().getBoolean("geocoder.processInvalidPositions")); } if (Context.getGeolocationProvider() != null) { geolocationHandler = new GeolocationHandler( - Context.getGeolocationProvider(), Context.getConfig().getBoolean("location.processInvalidPositions")); + Context.getGeolocationProvider(), + Context.getConfig().getBoolean("location.processInvalidPositions")); } distanceHandler = new DistanceHandler(); diff --git a/src/org/traccar/GeolocationHandler.java b/src/org/traccar/GeolocationHandler.java index 1e9bd6772..669c31654 100644 --- a/src/org/traccar/GeolocationHandler.java +++ b/src/org/traccar/GeolocationHandler.java @@ -47,7 +47,8 @@ public class GeolocationHandler implements ChannelUpstreamHandler { final Position position = (Position) message; if ((position.getOutdated() || processInvalidPositions && !position.getValid()) && position.getNetwork() != null) { - geolocationProvider.getLocation(position.getNetwork(), new GeolocationProvider.LocationProviderCallback() { + geolocationProvider.getLocation(position.getNetwork(), + new GeolocationProvider.LocationProviderCallback() { @Override public void onSuccess(double latitude, double longitude, double accuracy) { position.set(Position.KEY_APPROXIMATE, true); -- cgit v1.2.3