1.1 --- a/src/share/classes/com/sun/tools/javac/code/Lint.java Tue Jun 04 13:21:41 2013 +0100 1.2 +++ b/src/share/classes/com/sun/tools/javac/code/Lint.java Tue Jun 04 14:17:50 2013 -0700 1.3 @@ -68,19 +68,11 @@ 1.4 1.5 /** 1.6 * Returns the result of combining the values in this object with 1.7 - * the given annotations. 1.8 + * the metadata on the given symbol. 1.9 */ 1.10 - public Lint augment(Annotations annots) { 1.11 - return augmentor.augment(this, annots.getDeclarationAttributes()); 1.12 - } 1.13 - 1.14 - /** 1.15 - * Returns the result of combining the values in this object with 1.16 - * the given annotations and flags. 1.17 - */ 1.18 - public Lint augment(Annotations annots, long flags) { 1.19 - Lint l = augmentor.augment(this, annots.getDeclarationAttributes()); 1.20 - if ((flags & DEPRECATED) != 0) { 1.21 + public Lint augment(Symbol sym) { 1.22 + Lint l = augmentor.augment(this, sym.getDeclarationAttributes()); 1.23 + if (sym.isDeprecated()) { 1.24 if (l == this) 1.25 l = new Lint(this); 1.26 l.values.remove(LintCategory.DEPRECATION);