1.1 --- a/src/share/classes/com/sun/tools/javac/comp/Flow.java Fri Nov 12 12:33:52 2010 +0000 1.2 +++ b/src/share/classes/com/sun/tools/javac/comp/Flow.java Fri Nov 12 12:34:18 2010 +0000 1.3 @@ -1037,10 +1037,10 @@ 1.4 int nextadrCatch = nextadr; 1.5 1.6 if (!unrefdResources.isEmpty() && 1.7 - lint.isEnabled(Lint.LintCategory.ARM)) { 1.8 + lint.isEnabled(Lint.LintCategory.TRY)) { 1.9 for (Map.Entry<VarSymbol, JCVariableDecl> e : unrefdResources.entrySet()) { 1.10 - log.warning(e.getValue().pos(), 1.11 - "automatic.resource.not.referenced", e.getKey()); 1.12 + log.warning(Lint.LintCategory.TRY, e.getValue().pos(), 1.13 + "try.resource.not.referenced", e.getKey()); 1.14 } 1.15 } 1.16