use of com.github.javaparser.ast.type.ArrayType in project javaparser by javaparser.
the class MethodDeclarationTransformationsTest method replacingOnlyParameter.
@Test
public void replacingOnlyParameter() throws IOException {
MethodDeclaration it = consider("public void foo(float f){}");
it.getParameters().set(0, new Parameter(new ArrayType(PrimitiveType.intType()), new SimpleName("foo")));
assertTransformedToString("public void foo(int[] foo){}", it);
}
Aggregations