--- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Pool.java Fri Dec 16 12:08:46 2016 +0100
+++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Pool.java Fri Dec 16 15:27:34 2016 +0000
@@ -365,16 +365,8 @@
Assert.check(!refSym.owner.isInterface() || interfaceOwner);
}
//where
- Filter<Name> nonInitFilter = new Filter<Name>() {
- public boolean accepts(Name n) {
- return n != n.table.names.init && n != n.table.names.clinit;
- }
- };
+ Filter<Name> nonInitFilter = n -> (n != n.table.names.init && n != n.table.names.clinit);
- Filter<Name> initFilter = new Filter<Name>() {
- public boolean accepts(Name n) {
- return n == n.table.names.init;
- }
- };
+ Filter<Name> initFilter = n -> n == n.table.names.init;
}
}