public static void renameParametersToParameterN(final NewConstructor constructor) {
Checker.notNull("parameter:constructor", constructor);
final ConstructorParameterVisitor visitor = new ConstructorParameterVisitor() {
protected boolean visit(final ConstructorParameter parameter) {
final NewConstructorParameter parameterN = (NewConstructorParameter) parameter;
parameterN.setName("parameter" + counter);
counter++;
return false;
}
int counter = 0;