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

changeset 1724
d918b63a5509
parent 1359
25e14ad23cef
child 1751
ca8808c88f94
equal deleted inserted replaced
1723:a2889739cf21 1724:d918b63a5509
1 /* 1 /*
2 * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
48 48
49 /** 49 /**
50 * {@inheritDoc} 50 * {@inheritDoc}
51 */ 51 */
52 public void inherit(DocFinder.Input input, DocFinder.Output output) { 52 public void inherit(DocFinder.Input input, DocFinder.Output output) {
53 Tag[] tags = input.method.tags("return"); 53 Tag[] tags = input.element.tags("return");
54 if (tags.length > 0) { 54 if (tags.length > 0) {
55 output.holder = input.method; 55 output.holder = input.element;
56 output.holderTag = tags[0]; 56 output.holderTag = tags[0];
57 output.inlineTags = input.isFirstSentence ? 57 output.inlineTags = input.isFirstSentence ?
58 tags[0].firstSentenceTags() : tags[0].inlineTags(); 58 tags[0].firstSentenceTags() : tags[0].inlineTags();
59 } 59 }
60 } 60 }

mercurial