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/database/QueryBuilder.java | |
parent | d1cc97f991fa223cc115fb073f96963a71f4956f (diff) | |
download | trackermap-server-c21773be3d8e5626f3830e35af8a6659cae24522.tar.gz trackermap-server-c21773be3d8e5626f3830e35af8a6659cae24522.tar.bz2 trackermap-server-c21773be3d8e5626f3830e35af8a6659cae24522.zip |
Use diamond operator for generics
Diffstat (limited to 'src/org/traccar/database/QueryBuilder.java')
-rw-r--r-- | src/org/traccar/database/QueryBuilder.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/database/QueryBuilder.java b/src/org/traccar/database/QueryBuilder.java index 583a18539..85881a736 100644 --- a/src/org/traccar/database/QueryBuilder.java +++ b/src/org/traccar/database/QueryBuilder.java @@ -36,7 +36,7 @@ import org.traccar.model.Factory; public class QueryBuilder { - private final Map<String, List<Integer>> indexMap = new HashMap<String, List<Integer>>(); + private final Map<String, List<Integer>> indexMap = new HashMap<>(); private Connection connection; private PreparedStatement statement; private final String query; @@ -106,7 +106,7 @@ public class QueryBuilder { // Add to list List<Integer> indexList = paramMap.get(name); if (indexList == null) { - indexList = new LinkedList<Integer>(); + indexList = new LinkedList<>(); paramMap.put(name, indexList); } indexList.add(index); @@ -133,7 +133,7 @@ public class QueryBuilder { name = name.toLowerCase(); List<Integer> result = indexMap.get(name); if (result == null) { - result = new LinkedList<Integer>(); + result = new LinkedList<>(); } return result; } @@ -298,7 +298,7 @@ public class QueryBuilder { ResultSetMetaData resultMetaData = resultSet.getMetaData(); - List<ResultSetProcessor<T>> processors = new LinkedList<ResultSetProcessor<T>>(); + List<ResultSetProcessor<T>> processors = new LinkedList<>(); Method[] methods = prototype.getClass().getMethods(); |