diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-07 14:19:28 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-07 14:19:28 +1300 |
commit | 2260e9543dc586300b005c97ca83b2902c414968 (patch) | |
tree | 0ac295e51c084fae971684f5e5ac114ebc733f09 /src/org/traccar/web/PositionServlet.java | |
parent | 83382e14d92cadaa40c62d07cdba05a6ded5af83 (diff) | |
download | trackermap-server-2260e9543dc586300b005c97ca83b2902c414968.tar.gz trackermap-server-2260e9543dc586300b005c97ca83b2902c414968.tar.bz2 trackermap-server-2260e9543dc586300b005c97ca83b2902c414968.zip |
Replace valueOf with parseXxx calls
Diffstat (limited to 'src/org/traccar/web/PositionServlet.java')
-rw-r--r-- | src/org/traccar/web/PositionServlet.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/web/PositionServlet.java b/src/org/traccar/web/PositionServlet.java index 5ed74102f..afd7bab2a 100644 --- a/src/org/traccar/web/PositionServlet.java +++ b/src/org/traccar/web/PositionServlet.java @@ -43,7 +43,7 @@ public class PositionServlet extends BaseServlet { } private void get(HttpServletRequest req, HttpServletResponse resp) throws Exception { - long deviceId = Long.valueOf(req.getParameter("deviceId")); + long deviceId = Long.parseLong(req.getParameter("deviceId")); Context.getPermissionsManager().checkDevice(getUserId(req), deviceId); sendResponse(resp.getWriter(), JsonConverter.arrayToJson( Context.getDataManager().getPositions( |