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

changeset 1313
873ddd9f4900
parent 798
4868a36f6fd8
child 1384
bf54daa9dcd8
     1.1 --- a/src/share/classes/com/sun/tools/javac/code/Lint.java	Mon Aug 27 10:59:13 2012 -0700
     1.2 +++ b/src/share/classes/com/sun/tools/javac/code/Lint.java	Fri Aug 31 10:37:46 2012 +0100
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2005, 2012, 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 @@ -70,16 +70,16 @@
    1.11       * Returns the result of combining the values in this object with
    1.12       * the given annotations.
    1.13       */
    1.14 -    public Lint augment(List<Attribute.Compound> attrs) {
    1.15 -        return augmentor.augment(this, attrs);
    1.16 +    public Lint augment(Annotations annots) {
    1.17 +        return augmentor.augment(this, annots.getAttributes());
    1.18      }
    1.19  
    1.20      /**
    1.21       * Returns the result of combining the values in this object with
    1.22       * the given annotations and flags.
    1.23       */
    1.24 -    public Lint augment(List<Attribute.Compound> attrs, long flags) {
    1.25 -        Lint l = augmentor.augment(this, attrs);
    1.26 +    public Lint augment(Annotations annots, long flags) {
    1.27 +        Lint l = augmentor.augment(this, annots.getAttributes());
    1.28          if ((flags & DEPRECATED) != 0) {
    1.29              if (l == this)
    1.30                  l = new Lint(this);

mercurial