File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
src/main/java/ldbc/snb/datagen/util Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 84
84
<artifactId >maven-compiler-plugin</artifactId >
85
85
<version >3.5.1</version >
86
86
<configuration >
87
- <source >1.8 </source >
88
- <target >1.8 </target >
87
+ <source >1.7 </source >
88
+ <target >1.7 </target >
89
89
</configuration >
90
90
</plugin >
91
91
<plugin >
Original file line number Diff line number Diff line change @@ -304,7 +304,12 @@ public void writePersonFactors(OutputStream writer ) {
304
304
}
305
305
Map <Integer ,String > medianNames = new TreeMap <Integer ,String >();
306
306
for (Map .Entry <Integer ,List <String >> entry : countryNames .entrySet ()) {
307
- entry .getValue ().sort ( (a ,b ) -> a .compareTo (b ));
307
+ entry .getValue ().sort (new Comparator <String >(){
308
+ @ Override
309
+ public int compare (String o1 , String o2 ) {
310
+ return o1 .compareTo (o2 );
311
+ }
312
+ });
308
313
medianNames .put (entry .getKey (),entry .getValue ().get (entry .getValue ().size ()/2 ));
309
314
}
310
315
for (Map .Entry <Long , PersonCounts > c : personCounts_ .entrySet ()){
You can’t perform that action at this time.
0 commit comments