src/share/classes/com/sun/tools/javac/code/Lint.java

changeset 1521
71f35e4b93a5
parent 1442
fcf89720ae71
child 1588
2620c953e9fe
     1.1 --- a/src/share/classes/com/sun/tools/javac/code/Lint.java	Wed Jan 23 20:57:40 2013 +0000
     1.2 +++ b/src/share/classes/com/sun/tools/javac/code/Lint.java	Wed Jan 23 13:27:24 2013 -0800
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -74,7 +74,7 @@
    1.11       * the given annotations.
    1.12       */
    1.13      public Lint augment(Annotations annots) {
    1.14 -        return augmentor.augment(this, annots.getAttributes());
    1.15 +        return augmentor.augment(this, annots.getDeclarationAttributes());
    1.16      }
    1.17  
    1.18      /**
    1.19 @@ -82,7 +82,7 @@
    1.20       * the given annotations and flags.
    1.21       */
    1.22      public Lint augment(Annotations annots, long flags) {
    1.23 -        Lint l = augmentor.augment(this, annots.getAttributes());
    1.24 +        Lint l = augmentor.augment(this, annots.getDeclarationAttributes());
    1.25          if ((flags & DEPRECATED) != 0) {
    1.26              if (l == this)
    1.27                  l = new Lint(this);

mercurial