Skip to content

Commit ad8a9c7

Browse files
authored
Merge pull request #22 from hannesmuehleisen/master
making this Java 1.7 compatible
2 parents fcfcaf5 + 833868f commit ad8a9c7

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@
8484
<artifactId>maven-compiler-plugin</artifactId>
8585
<version>3.5.1</version>
8686
<configuration>
87-
<source>1.8</source>
88-
<target>1.8</target>
87+
<source>1.7</source>
88+
<target>1.7</target>
8989
</configuration>
9090
</plugin>
9191
<plugin>

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,12 @@ 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( (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+
});
308313
medianNames.put(entry.getKey(),entry.getValue().get(entry.getValue().size()/2));
309314
}
310315
for (Map.Entry<Long, PersonCounts> c: personCounts_.entrySet()){

0 commit comments

Comments
 (0)