langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Pool.java
changeset 42827 36468b5fa7f4
parent 32336 9e9acf7f26a4
equal deleted inserted replaced
42826:563b42fc70ba 42827:36468b5fa7f4
   363             Assert.check(refSym.kind == expectedKind);
   363             Assert.check(refSym.kind == expectedKind);
   364             Assert.check(nameFilter.accepts(refSym.name));
   364             Assert.check(nameFilter.accepts(refSym.name));
   365             Assert.check(!refSym.owner.isInterface() || interfaceOwner);
   365             Assert.check(!refSym.owner.isInterface() || interfaceOwner);
   366         }
   366         }
   367         //where
   367         //where
   368                 Filter<Name> nonInitFilter = new Filter<Name>() {
   368                 Filter<Name> nonInitFilter = n -> (n != n.table.names.init && n != n.table.names.clinit);
   369                     public boolean accepts(Name n) {
   369 
   370                         return n != n.table.names.init && n != n.table.names.clinit;
   370                 Filter<Name> initFilter = n -> n == n.table.names.init;
   371                     }
       
   372                 };
       
   373 
       
   374                 Filter<Name> initFilter = new Filter<Name>() {
       
   375                     public boolean accepts(Name n) {
       
   376                         return n == n.table.names.init;
       
   377                     }
       
   378                 };
       
   379     }
   371     }
   380 }
   372 }