src/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/ReturnTaglet.java

changeset 1724
d918b63a5509
parent 1359
25e14ad23cef
child 1751
ca8808c88f94
     1.1 --- a/src/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/ReturnTaglet.java	Fri May 03 15:08:47 2013 -0700
     1.2 +++ b/src/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/ReturnTaglet.java	Fri May 03 17:44:38 2013 -0700
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2001, 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 @@ -50,9 +50,9 @@
    1.11       * {@inheritDoc}
    1.12       */
    1.13      public void inherit(DocFinder.Input input, DocFinder.Output output) {
    1.14 -       Tag[] tags = input.method.tags("return");
    1.15 +       Tag[] tags = input.element.tags("return");
    1.16          if (tags.length > 0) {
    1.17 -            output.holder = input.method;
    1.18 +            output.holder = input.element;
    1.19              output.holderTag = tags[0];
    1.20              output.inlineTags = input.isFirstSentence ?
    1.21                  tags[0].firstSentenceTags() : tags[0].inlineTags();

mercurial