aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Piet Mens <jpmens@gmail.com>2017-06-14 07:51:33 +0200
committerJan-Piet Mens <jpmens@gmail.com>2017-06-14 07:57:40 +0200
commitd4e075a0b285f70d3c9854120f57ce06888f51e4 (patch)
tree464e11a14345794ddddcf06854c8b38960155907
parentc9ba2fc87382a5a872cc7a34410f9be31bac6cfe (diff)
downloadtrackermap-server-d4e075a0b285f70d3c9854120f57ce06888f51e4.tar.gz
trackermap-server-d4e075a0b285f70d3c9854120f57ce06888f51e4.tar.bz2
trackermap-server-d4e075a0b285f70d3c9854120f57ce06888f51e4.zip
indentation wrapped lines=8
-rw-r--r--src/org/traccar/protocol/OwnTracksProtocolDecoder.java2
-rw-r--r--test/org/traccar/protocol/OwnTracksProtocolDecoderTest.java8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/org/traccar/protocol/OwnTracksProtocolDecoder.java b/src/org/traccar/protocol/OwnTracksProtocolDecoder.java
index 4baafc118..61950aef8 100644
--- a/src/org/traccar/protocol/OwnTracksProtocolDecoder.java
+++ b/src/org/traccar/protocol/OwnTracksProtocolDecoder.java
@@ -56,7 +56,7 @@ public class OwnTracksProtocolDecoder extends BaseProtocolDecoder {
HttpRequest request = (HttpRequest) msg;
JsonObject root = Json.createReader(
- new StringReader(request.getContent().toString(StandardCharsets.US_ASCII))).readObject();
+ new StringReader(request.getContent().toString(StandardCharsets.US_ASCII))).readObject();
Position position = new Position();
position.setProtocol(getProtocolName());
diff --git a/test/org/traccar/protocol/OwnTracksProtocolDecoderTest.java b/test/org/traccar/protocol/OwnTracksProtocolDecoderTest.java
index 30ae95d03..1eb188421 100644
--- a/test/org/traccar/protocol/OwnTracksProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/OwnTracksProtocolDecoderTest.java
@@ -11,11 +11,11 @@ public class OwnTracksProtocolDecoderTest extends ProtocolTest {
OwnTracksProtocolDecoder decoder = new OwnTracksProtocolDecoder(new OwnTracksProtocol());
- verifyPosition(decoder, request(HttpMethod.POST, "/",
- buffer(text("{\"lon\":2.29513,\"lat\":48.85833,\"tst\":1497349316,\"_type\":\"location\",\"tid\":\"JJ\"}"))));
+ verifyPosition(decoder, request(HttpMethod.POST, "/",
+ buffer(text("{\"lon\":2.29513,\"lat\":48.85833,\"tst\":1497349316,\"_type\":\"location\",\"tid\":\"JJ\"}"))));
- verifyPosition(decoder, request(HttpMethod.POST, "/",
- buffer(text("{\"cog\":271,\"lon\":2.29513,\"acc\":5,\"vel\":61,\"vac\":21,\"lat\":48.85833,\"tst\":1497349316,\"alt\":167,\"_type\":\"location\",\"tid\":\"JJ\",\"t\":\"u\",\"batt\":67}"))));
+ verifyPosition(decoder, request(HttpMethod.POST, "/",
+ buffer(text("{\"cog\":271,\"lon\":2.29513,\"acc\":5,\"vel\":61,\"vac\":21,\"lat\":48.85833,\"tst\":1497349316,\"alt\":167,\"_type\":\"location\",\"tid\":\"JJ\",\"t\":\"u\",\"batt\":67}"))));
}