Skip to content

Commit

Permalink
delete last of previousParameterNames stuff for now
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.codehaus.org/paranamer/trunk@153 75d258eb-f418-0410-b93b-c6a5b200b6a1
  • Loading branch information
paul committed Jun 6, 2007
1 parent 95e7068 commit 3e31a04
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,17 @@ private String addMethods(JavaMethod[] methods) {

private String addPublicMethod(JavaMethod method) {
JavaParameter[] parameters = method.getParameters();
DocletTag[] alsoKnownAs = method.getTagsByName("previousParamNames");
return format(method, parameters, alsoKnownAs);
return format(method, parameters);
}

private String format(JavaMethod method, JavaParameter[] parameters, DocletTag[] alsoKnownAs) {
private String format(JavaMethod method, JavaParameter[] parameters) {
StringBuffer sb = new StringBuffer();
String methodName = method.getName();
if (method.isConstructor()) {
methodName = "<init>";
}
String parameterTypes = getParameterTypes(parameters);
sb.append(formatLine(methodName, parameterTypes, getParameterNames(parameters)));
for (int i = 0; i < alsoKnownAs.length; i++) {
sb.append(formatLine(methodName, parameterTypes, alsoKnownAs[i].getValue()));
}
return sb.toString();
}

Expand Down

0 comments on commit 3e31a04

Please sign in to comment.