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 |
99 //print a warning for this mistake. |
99 //print a warning for this mistake. |
100 return; |
100 return; |
101 } |
101 } |
102 } |
102 } |
103 ParamTag[] tags = input.isTypeVariableParamTag ? |
103 ParamTag[] tags = input.isTypeVariableParamTag ? |
104 input.method.typeParamTags() : input.method.paramTags(); |
104 ((MethodDoc)input.element).typeParamTags() : ((MethodDoc)input.element).paramTags(); |
105 Map<String, String> rankMap = getRankMap(input.isTypeVariableParamTag ? |
105 Map<String, String> rankMap = getRankMap(input.isTypeVariableParamTag ? |
106 (Object[]) input.method.typeParameters() : |
106 (Object[]) ((MethodDoc)input.element).typeParameters() : |
107 (Object[]) input.method.parameters()); |
107 (Object[]) ((MethodDoc)input.element).parameters()); |
108 for (int i = 0; i < tags.length; i++) { |
108 for (int i = 0; i < tags.length; i++) { |
109 if (rankMap.containsKey(tags[i].parameterName()) && |
109 if (rankMap.containsKey(tags[i].parameterName()) && |
110 rankMap.get(tags[i].parameterName()).equals((input.tagId))) { |
110 rankMap.get(tags[i].parameterName()).equals((input.tagId))) { |
111 output.holder = input.method; |
111 output.holder = input.element; |
112 output.holderTag = tags[i]; |
112 output.holderTag = tags[i]; |
113 output.inlineTags = input.isFirstSentence ? |
113 output.inlineTags = input.isFirstSentence ? |
114 tags[i].firstSentenceTags() : tags[i].inlineTags(); |
114 tags[i].firstSentenceTags() : tags[i].inlineTags(); |
115 return; |
115 return; |
116 } |
116 } |