< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Lower.java

Print this page
*** 267,17 ***
      Map<ClassSymbol,List<VarSymbol>> freevarCache;
  
      /** A navigator class for collecting the free variables accessed
       *  from a local class.
       */
!     class FreeVarCollector extends CaptureScanner {
  
!         FreeVarCollector(JCTree ownerTree) {
              super(ownerTree);
          }
  
!         void addFreeVars(ClassSymbol c) {
              List<VarSymbol> fvs = freevarCache.get(c);
              if (fvs != null) {
                  for (List<VarSymbol> l = fvs; l.nonEmpty(); l = l.tail) {
                      addFreeVar(l.head);
                  }
--- 267,17 ---
      Map<ClassSymbol,List<VarSymbol>> freevarCache;
  
      /** A navigator class for collecting the free variables accessed
       *  from a local class.
       */
!     public class FreeVarCollector extends CaptureScanner {
  
!         protected FreeVarCollector(JCTree ownerTree) {
              super(ownerTree);
          }
  
!         protected void addFreeVars(ClassSymbol c) {
              List<VarSymbol> fvs = freevarCache.get(c);
              if (fvs != null) {
                  for (List<VarSymbol> l = fvs; l.nonEmpty(); l = l.tail) {
                      addFreeVar(l.head);
                  }
< prev index next >