aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-12-31 11:47:20 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-12-31 11:47:20 +1300
commit352986138b5eb580af85f9d0650766303c72ea90 (patch)
tree0e6eeb2fba240200d590433417eb5dadef4092ad /src/org/traccar
parent679c2852e3c4987091e0b84b7e7d80a9f72964a0 (diff)
downloadtrackermap-server-352986138b5eb580af85f9d0650766303c72ea90.tar.gz
trackermap-server-352986138b5eb580af85f9d0650766303c72ea90.tar.bz2
trackermap-server-352986138b5eb580af85f9d0650766303c72ea90.zip
Fix style issues
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/BasePipelineFactory.java6
-rw-r--r--src/org/traccar/GeolocationHandler.java3
2 files changed, 6 insertions, 3 deletions
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);