diff options
author | Christoph Krey <c@ckrey.de> | 2018-11-12 11:19:48 +0100 |
---|---|---|
committer | Christoph Krey <c@ckrey.de> | 2018-11-12 11:19:48 +0100 |
commit | 2dc53f13f965b17152b4174e51c60d143b12fbc7 (patch) | |
tree | 85818dadc563d2c2d724c7f4ab6e7f20c95ff083 | |
parent | 22fd6a6a2a38de73b0ce053c862bd7221e9c2184 (diff) | |
download | traccar-server-2dc53f13f965b17152b4174e51c60d143b12fbc7.tar.gz traccar-server-2dc53f13f965b17152b4174e51c60d143b12fbc7.tar.bz2 traccar-server-2dc53f13f965b17152b4174e51c60d143b12fbc7.zip |
[FIX] removed superfluos blank line, used meaningfull variable name
-rw-r--r-- | src/org/traccar/protocol/OwnTracksProtocolDecoder.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/OwnTracksProtocolDecoder.java b/src/org/traccar/protocol/OwnTracksProtocolDecoder.java index 807112d10..c81ebe522 100644 --- a/src/org/traccar/protocol/OwnTracksProtocolDecoder.java +++ b/src/org/traccar/protocol/OwnTracksProtocolDecoder.java @@ -14,7 +14,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.traccar.protocol; import io.netty.channel.Channel; @@ -114,13 +113,13 @@ public class OwnTracksProtocolDecoder extends BaseHttpProtocolDecoder { position.setAccuracy(root.getInt("acc")); } if (root.containsKey("t")) { - String t = root.getString("t"); - position.set("t", t); + String trigger = root.getString("t"); + position.set("t", trigger); Integer rty = -1; if (root.containsKey("rty")) { rty = root.getInt("rty"); } - setEventOrAlarm(position, t, rty); + setEventOrAlarm(position, trigger, rty); } if (root.containsKey("batt")) { position.set(Position.KEY_BATTERY_LEVEL, root.getInt("batt")); |