block lambda -> expr lambda

This commit is contained in:
Anna.Kozlova
2016-05-24 12:25:16 +02:00
parent 71bb82acbe
commit 7067504c27

View File

@@ -124,9 +124,7 @@ public class SingleClassesTest {
File parent = classFile.getParentFile(); File parent = classFile.getParentFile();
if (parent != null) { if (parent != null) {
final String pattern = classFile.getName().replace(".class", "") + "\\$.+\\.class"; final String pattern = classFile.getName().replace(".class", "") + "\\$.+\\.class";
File[] inner = parent.listFiles((dir, name) -> { File[] inner = parent.listFiles((dir, name) -> name.matches(pattern));
return name.matches(pattern);
});
if (inner != null) Collections.addAll(files, inner); if (inner != null) Collections.addAll(files, inner);
} }