langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/ParamTaglet.java
equal
deleted
inserted
replaced
98 return; |
98 return; |
99 } |
99 } |
100 } |
100 } |
101 ParamTag[] tags = input.isTypeVariableParamTag ? |
101 ParamTag[] tags = input.isTypeVariableParamTag ? |
102 input.method.typeParamTags() : input.method.paramTags(); |
102 input.method.typeParamTags() : input.method.paramTags(); |
103 Map rankMap = getRankMap(input.isTypeVariableParamTag ? |
103 Map<String, String> rankMap = getRankMap(input.isTypeVariableParamTag ? |
104 (Object[]) input.method.typeParameters() : |
104 (Object[]) input.method.typeParameters() : |
105 (Object[]) input.method.parameters()); |
105 (Object[]) input.method.parameters()); |
106 for (int i = 0; i < tags.length; i++) { |
106 for (int i = 0; i < tags.length; i++) { |
107 if (rankMap.containsKey(tags[i].parameterName()) && |
107 if (rankMap.containsKey(tags[i].parameterName()) && |
108 rankMap.get(tags[i].parameterName()).equals((input.tagId))) { |
108 rankMap.get(tags[i].parameterName()).equals((input.tagId))) { |
260 * used to ensure that the right name is used |
260 * used to ensure that the right name is used |
261 * when parameter documentation is inherited. |
261 * when parameter documentation is inherited. |
262 * @return the TagletOutput representation of this <code>Tag</code>. |
262 * @return the TagletOutput representation of this <code>Tag</code>. |
263 */ |
263 */ |
264 private TagletOutput processParamTags(boolean isNonTypeParams, |
264 private TagletOutput processParamTags(boolean isNonTypeParams, |
265 ParamTag[] paramTags, Map rankMap, TagletWriter writer, |
265 ParamTag[] paramTags, Map<String, String> rankMap, TagletWriter writer, |
266 Set<String> alreadyDocumented) { |
266 Set<String> alreadyDocumented) { |
267 TagletOutput result = writer.getOutputInstance(); |
267 TagletOutput result = writer.getOutputInstance(); |
268 if (paramTags.length > 0) { |
268 if (paramTags.length > 0) { |
269 for (int i = 0; i < paramTags.length; ++i) { |
269 for (int i = 0; i < paramTags.length; ++i) { |
270 ParamTag pt = paramTags[i]; |
270 ParamTag pt = paramTags[i]; |
275 isNonTypeParams ? |
275 isNonTypeParams ? |
276 "doclet.Parameters_warn" : |
276 "doclet.Parameters_warn" : |
277 "doclet.Type_Parameters_warn", |
277 "doclet.Type_Parameters_warn", |
278 paramName); |
278 paramName); |
279 } |
279 } |
280 String rank = (String) rankMap.get(pt.parameterName()); |
280 String rank = rankMap.get(pt.parameterName()); |
281 if (rank != null && alreadyDocumented.contains(rank)) { |
281 if (rank != null && alreadyDocumented.contains(rank)) { |
282 writer.getMsgRetriever().warning(pt.position(), |
282 writer.getMsgRetriever().warning(pt.position(), |
283 isNonTypeParams ? |
283 isNonTypeParams ? |
284 "doclet.Parameters_dup_warn" : |
284 "doclet.Parameters_dup_warn" : |
285 "doclet.Type_Parameters_dup_warn", |
285 "doclet.Type_Parameters_dup_warn", |