Skip to content

Commit 08e6e6c

Browse files
committed
Further simplifications in generic parameters
1 parent edd5433 commit 08e6e6c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/main/java/ldbc/snb/datagen/dictionary/IPAddressDictionary.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public class IPAddressDictionary {
6868
public IPAddressDictionary(PlaceDictionary locationDic) {
6969

7070
this.placeDictionary = locationDic;
71-
this.ipsByCountry = new TreeMap<Integer, List<IP>>();
71+
this.ipsByCountry = new TreeMap<>();
7272
load(DatagenParams.countryAbbrMappingFile, DatagenParams.IPZONE_DIRECTORY);
7373
}
7474

src/main/java/ldbc/snb/datagen/dictionary/TagMatrix.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ public class TagMatrix {
6262
*/
6363

6464
public TagMatrix() {
65-
cumulative = new TreeMap<Integer, List<Double>>();
66-
relatedTags = new TreeMap<Integer, List<Integer>>();
65+
cumulative = new TreeMap<>();
66+
relatedTags = new TreeMap<>();
6767
nonZeroTags = new ArrayList<>();
6868
load(DatagenParams.tagMatrixFile);
6969

src/main/java/ldbc/snb/datagen/dictionary/UniversityDictionary.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public UniversityDictionary(PlaceDictionary locationDic,
9191
this.startIndex = startIndex;
9292
this.universityName = new TreeMap<>();
9393
this.universityCity = new TreeMap<>();
94-
this.universitiesByCountry = new TreeMap<Integer, List<Long>>();
94+
this.universitiesByCountry = new TreeMap<>();
9595
for (Integer id : locationDic.getCountries()) {
9696
universitiesByCountry.put(id, new ArrayList<>());
9797
}

src/main/java/ldbc/snb/datagen/util/FactorTable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ public void extractFactors(Like like) {
343343

344344
public void writePersonFactors(OutputStream writer) {
345345
try {
346-
Map<Integer, List<String>> countryNames = new TreeMap<Integer, List<String>>();
346+
Map<Integer, List<String>> countryNames = new TreeMap<>();
347347
for (Map.Entry<Long, PersonCounts> c : personCounts_.entrySet()) {
348348
if (c.getValue().name() != null) {
349349
List<String> names = countryNames.get(c.getValue().country());

0 commit comments

Comments
 (0)