rewrite.markAsReplaced(methodDecl, MethodDeclaration.CONSTRUCTOR_PROPERTY, Boolean.TRUE, null); rewrite.markAsReplaced(methodDecl, MethodDeclaration.EXTRA_DIMENSIONS_PROPERTY, new Integer(0), null);
rewrite.set(methodDecl, MethodDeclaration.CONSTRUCTOR_PROPERTY, Boolean.TRUE, null); rewrite.set(methodDecl, MethodDeclaration.EXTRA_DIMENSIONS_PROPERTY, new Integer(0), null);
	public void testMethodDeclaration_bug24916() throws Exception {			IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);		StringBuffer buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("public class DD {\n");		buf.append("    private int DD()[]{\n");		buf.append("    };\n");		buf.append("}\n");		ICompilationUnit cu= pack1.createCompilationUnit("DD.java", buf.toString(), false, null);		CompilationUnit astRoot= createAST(cu);		NewASTRewrite rewrite= new NewASTRewrite(astRoot.getAST());		TypeDeclaration type= findTypeDeclaration(astRoot, "DD");		{			MethodDeclaration methodDecl= findMethodDeclaration(type, "DD");						rewrite.markAsReplaced(methodDecl, MethodDeclaration.CONSTRUCTOR_PROPERTY, Boolean.TRUE, null);			rewrite.markAsReplaced(methodDecl, MethodDeclaration.EXTRA_DIMENSIONS_PROPERTY, new Integer(0), null);		}		String preview= evaluateRewrite(cu, rewrite);		buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("public class DD {\n");		buf.append("    private DD(){\n");		buf.append("    };\n");		buf.append("}\n");		assertEqualString(preview, buf.toString());	}