[java] raises language level to Java 9

This commit is contained in:
Roman Shevchenko
2017-03-24 18:35:57 +01:00
parent 9c35556803
commit 5e5c14c57e
5 changed files with 6 additions and 6 deletions
@@ -46,7 +46,7 @@ public class Main {
long sum = 0L;
for (Map.Entry<String, List<String>> e : strings.entrySet()) {
if (!e.getKey().isEmpty()) {
long count = e.getValue().stream().filter(new Predicate<String>() {
long count = e.getValue().stream().filter(new Predicate<>() {
// we're inside anonymous class
@Override
public boolean test(String s) {
@@ -14,5 +14,5 @@ public class Res {
System.out.println(param);
}
});
}
}
}
@@ -1,6 +1,6 @@
public class Res {
public static final Res.R<String, Object> R = new R<String, Object>() {
public static final Res.R<String, Object> R = new R<>() {
final String param = "";
@Override
@@ -17,5 +17,5 @@ public class Res {
private void validateStructuresCookie(Res cookie) {
cookie.bar(<caret>R);
}
}
}