diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-14 12:12:04 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-14 12:12:04 +1200 |
commit | c21773be3d8e5626f3830e35af8a6659cae24522 (patch) | |
tree | 0436e270fd9444a66ef14a23a36767931570991a /src/org/traccar/http/AsyncServlet.java | |
parent | d1cc97f991fa223cc115fb073f96963a71f4956f (diff) | |
download | traccar-server-c21773be3d8e5626f3830e35af8a6659cae24522.tar.gz traccar-server-c21773be3d8e5626f3830e35af8a6659cae24522.tar.bz2 traccar-server-c21773be3d8e5626f3830e35af8a6659cae24522.zip |
Use diamond operator for generics
Diffstat (limited to 'src/org/traccar/http/AsyncServlet.java')
-rw-r--r-- | src/org/traccar/http/AsyncServlet.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/http/AsyncServlet.java b/src/org/traccar/http/AsyncServlet.java index 47ffda3ad..0fc1cd2fb 100644 --- a/src/org/traccar/http/AsyncServlet.java +++ b/src/org/traccar/http/AsyncServlet.java @@ -57,10 +57,10 @@ public class AsyncServlet extends BaseServlet { private boolean destroyed; private final long userId; - private final Set<Long> devices = new HashSet<Long>(); + private final Set<Long> devices = new HashSet<>(); private Timeout sessionTimeout; private Timeout requestTimeout; - private final Map<Long, Position> positions = new HashMap<Long, Position>(); + private final Map<Long, Position> positions = new HashMap<>(); private AsyncContext activeContext; private void logEvent(String message) { @@ -177,7 +177,7 @@ public class AsyncServlet extends BaseServlet { } - private static final Map<Long, AsyncSession> asyncSessions = new HashMap<Long, AsyncSession>(); + private static final Map<Long, AsyncSession> asyncSessions = new HashMap<>(); public static void sessionRefreshUser(long userId) { asyncSessions.remove(userId); |