equal
deleted
inserted
replaced
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) { |