Bug 25152 Code format too tight when creating a missing method [code manipulation]
When you choose the quick fix 'create method', the code generated butts up below the method without a new line: } /** * Method precompile. */ private void precompile() { } instead of: } /** * Method precompile. */ private void precompile() { }
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingTypeDeclTest.java
MethodDeclaration methodDecl= findMethodDeclaration(type, "foo");
		List arguments= methodDecl.parameters();
		{ 
			SingleVariableDeclaration decl= (SingleVariableDeclaration) arguments.get(0);
			
			SingleVariableDeclaration modifierNode= ast.newSingleVariableDeclaration();
			modifierNode.setModifiers(Modifier.FINAL);
			modifierNode.setExtraDimensions(1);
			
			rewrite.markAsModified(decl, modifierNode);
			
			ArrayType newVarType= ast.newArrayType(ast.newPrimitiveType(PrimitiveType.FLOAT), 2);
			rewrite.markAsReplaced(decl.getType(), newVarType);
			
			Name newName= ast.newSimpleName("count");
			rewrite.markAsReplaced(decl.getName(), newName);
		}
		{ 
			SingleVariableDeclaration decl= (SingleVariableDeclaration) arguments.get(1);
			
			SingleVariableDeclaration modifierNode= ast.newSingleVariableDeclaration();
			modifierNode.setModifiers(0);
			modifierNode.setExtraDimensions(decl.getExtraDimensions()); 
			
			rewrite.markAsModified(decl, modifierNode);
			
			Type newVarType= ast.newPrimitiveType(PrimitiveType.FLOAT);
			rewrite.markAsReplaced(decl.getType(), newVarType);
		}
		{