Skip to content

Commit 008b3e8

Browse files
committed
Make sorting work on Java 7
1 parent 66a9669 commit 008b3e8

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,7 @@ public void writePersonFactors(OutputStream writer ) {
304304
}
305305
Map<Integer,String> medianNames = new TreeMap<Integer,String>();
306306
for (Map.Entry<Integer,List<String>> entry : countryNames.entrySet()) {
307-
entry.getValue().sort(new Comparator<String>(){
308-
@Override
309-
public int compare(String o1, String o2) {
310-
return o1.compareTo(o2);
311-
}
312-
});
307+
Collections.sort(entry.getValue());
313308
medianNames.put(entry.getKey(),entry.getValue().get(entry.getValue().size()/2));
314309
}
315310
for (Map.Entry<Long, PersonCounts> c: personCounts_.entrySet()){

0 commit comments

Comments
 (0)