mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
[java] raises language level to Java 9
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
+1
-1
@@ -14,5 +14,5 @@ public class Res {
|
||||
System.out.println(param);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user