We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66a9669 commit 008b3e8Copy full SHA for 008b3e8
src/main/java/ldbc/snb/datagen/util/FactorTable.java
@@ -304,12 +304,7 @@ public void writePersonFactors(OutputStream writer ) {
304
}
305
Map<Integer,String> medianNames = new TreeMap<Integer,String>();
306
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
- });
+ Collections.sort(entry.getValue());
313
medianNames.put(entry.getKey(),entry.getValue().get(entry.getValue().size()/2));
314
315
for (Map.Entry<Long, PersonCounts> c: personCounts_.entrySet()){
0 commit comments