[java] raises language level to Java 9

This commit is contained in:
Roman Shevchenko
2017-03-24 18:35:29 +01:00
parent 9c35556803
commit 5e5c14c57e
5 changed files with 6 additions and 6 deletions

View File

@@ -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) {