aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/OsmAndProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-07-23 01:01:15 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-07-23 01:01:15 +1200
commit5d9c7f4dde298d5b02a2aa688bb27949072e2a57 (patch)
tree816af0280fbb67bca24472a01661ddb2112e6c1a /src/org/traccar/protocol/OsmAndProtocolDecoder.java
parent0275aa2bc793e0c3057ee954df4e4b02e6708898 (diff)
downloadtrackermap-server-5d9c7f4dde298d5b02a2aa688bb27949072e2a57.tar.gz
trackermap-server-5d9c7f4dde298d5b02a2aa688bb27949072e2a57.tar.bz2
trackermap-server-5d9c7f4dde298d5b02a2aa688bb27949072e2a57.zip
Fix checkstyle issue
Diffstat (limited to 'src/org/traccar/protocol/OsmAndProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/OsmAndProtocolDecoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/OsmAndProtocolDecoder.java b/src/org/traccar/protocol/OsmAndProtocolDecoder.java
index 12192c457..f46511b27 100644
--- a/src/org/traccar/protocol/OsmAndProtocolDecoder.java
+++ b/src/org/traccar/protocol/OsmAndProtocolDecoder.java
@@ -48,8 +48,7 @@ public class OsmAndProtocolDecoder extends BaseProtocolDecoder {
QueryStringDecoder decoder = new QueryStringDecoder(request.getUri());
Map<String, List<String>> params = decoder.getParameters();
if (params.isEmpty()) {
- decoder = new QueryStringDecoder(
- request.getContent().toString(StandardCharsets.US_ASCII), false);
+ decoder = new QueryStringDecoder(request.getContent().toString(StandardCharsets.US_ASCII), false);
params = decoder.getParameters();
}
@@ -65,7 +64,8 @@ public class OsmAndProtocolDecoder extends BaseProtocolDecoder {
DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, value);
if (deviceSession == null) {
if (channel != null) {
- channel.write(new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.BAD_REQUEST));
+ channel.write(
+ new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.BAD_REQUEST));
}
return null;
}