diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-09-30 23:06:59 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-09-30 23:06:59 -0700 |
commit | ef5f959f737a6277b146e5eb4e34827638b1f93c (patch) | |
tree | 05dae02283339e64ace42ff062281a68a4f14df8 /src/main/java/org/traccar/protocol | |
parent | 1e06b00e5f6068a191d0652798f12df77f0b0e0a (diff) | |
download | traccar-server-ef5f959f737a6277b146e5eb4e34827638b1f93c.tar.gz traccar-server-ef5f959f737a6277b146e5eb4e34827638b1f93c.tar.bz2 traccar-server-ef5f959f737a6277b146e5eb4e34827638b1f93c.zip |
Various minor code cleanup
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r-- | src/main/java/org/traccar/protocol/OwnTracksProtocolDecoder.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/protocol/OwnTracksProtocolDecoder.java b/src/main/java/org/traccar/protocol/OwnTracksProtocolDecoder.java index 323d97fa3..509d14ae4 100644 --- a/src/main/java/org/traccar/protocol/OwnTracksProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/OwnTracksProtocolDecoder.java @@ -110,7 +110,7 @@ public class OwnTracksProtocolDecoder extends BaseHttpProtocolDecoder { if (root.containsKey("t")) { String trigger = root.getString("t"); position.set("t", trigger); - Integer reportType = -1; + int reportType = -1; if (root.containsKey("rty")) { reportType = root.getInt("rty"); } @@ -148,8 +148,8 @@ public class OwnTracksProtocolDecoder extends BaseHttpProtocolDecoder { } if (root.containsKey("anum")) { - Integer numberOfAnalogueInputs = root.getInt("anum"); - for (Integer i = 0; i < numberOfAnalogueInputs; i++) { + int numberOfAnalogueInputs = root.getInt("anum"); + for (int i = 0; i < numberOfAnalogueInputs; i++) { String indexString = String.format("%02d", i); if (root.containsKey("adda-" + indexString)) { position.set(Position.PREFIX_ADC + (i + 1), root.getString("adda-" + indexString)); |