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 |
47 |
47 |
48 /** |
48 /** |
49 * {@inheritDoc} |
49 * {@inheritDoc} |
50 */ |
50 */ |
51 public void inherit(DocFinder.Input input, DocFinder.Output output) { |
51 public void inherit(DocFinder.Input input, DocFinder.Output output) { |
52 Tag[] tags = input.method.seeTags(); |
52 Tag[] tags = input.element.seeTags(); |
53 if (tags.length > 0) { |
53 if (tags.length > 0) { |
54 output.holder = input.method; |
54 output.holder = input.element; |
55 output.holderTag = tags[0]; |
55 output.holderTag = tags[0]; |
56 output.inlineTags = input.isFirstSentence ? |
56 output.inlineTags = input.isFirstSentence ? |
57 tags[0].firstSentenceTags() : tags[0].inlineTags(); |
57 tags[0].firstSentenceTags() : tags[0].inlineTags(); |
58 } |
58 } |
59 } |
59 } |