langtools/src/share/classes/com/sun/tools/javac/comp/Flow.java
changeset 7211 163fe60f63de
parent 7210 8dd5f907461e
child 7621 9f2901d1f92f
equal deleted inserted replaced
7210:8dd5f907461e 7211:163fe60f63de
  1035         Bits initsEnd = inits;
  1035         Bits initsEnd = inits;
  1036         Bits uninitsEnd = uninits;
  1036         Bits uninitsEnd = uninits;
  1037         int nextadrCatch = nextadr;
  1037         int nextadrCatch = nextadr;
  1038 
  1038 
  1039         if (!unrefdResources.isEmpty() &&
  1039         if (!unrefdResources.isEmpty() &&
  1040                 lint.isEnabled(Lint.LintCategory.ARM)) {
  1040                 lint.isEnabled(Lint.LintCategory.TRY)) {
  1041             for (Map.Entry<VarSymbol, JCVariableDecl> e : unrefdResources.entrySet()) {
  1041             for (Map.Entry<VarSymbol, JCVariableDecl> e : unrefdResources.entrySet()) {
  1042                 log.warning(e.getValue().pos(),
  1042                 log.warning(Lint.LintCategory.TRY, e.getValue().pos(),
  1043                             "automatic.resource.not.referenced", e.getKey());
  1043                             "try.resource.not.referenced", e.getKey());
  1044             }
  1044             }
  1045         }
  1045         }
  1046 
  1046 
  1047         List<Type> caughtInTry = List.nil();
  1047         List<Type> caughtInTry = List.nil();
  1048         for (List<JCCatch> l = tree.catchers; l.nonEmpty(); l = l.tail) {
  1048         for (List<JCCatch> l = tree.catchers; l.nonEmpty(); l = l.tail) {