Bug 15726 moves field comments from one field to another [quick fix]
20020508 public class A { int field; //field comment A(int fred){ _fred= fred; } } you are offered to create field _fred but then it steals the comment: int field; private int _fred; //field comment
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/astrewrite/ASTRewritingStatementsTest.java
buf.append("    }\n");
			buf.append("    public void hoo(int p1, Object p2) {\n");
			buf.append("        return;\n");
			buf.append("    }\n");		
			buf.append("}\n");	
			
			assertEqualString(cu.getSource(), buf.toString());			
			clearRewrite(rewrite);
		}
/*		{  // delete 
			StringBuffer buf= new StringBuffer();
			buf.append("package test1;\n");
			buf.append("public class E {\n");
			buf.append("    public Object goo() {\n");
			buf.append("        i++; //comment\n");
			buf.append("        i++; //comment\n");					
			buf.append("        return new Integer(3);\n");
			buf.append("    }\n");
			buf.append("}\n");	
			ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);
			
			CompilationUnit astRoot= AST.parseCompilationUnit(cu, false);
			ASTRewrite rewrite= new ASTRewrite(astRoot);
			TypeDeclaration type= findTypeDeclaration(astRoot, "E");
		
			MethodDeclaration methodDecl= findMethodDeclaration(type, "goo");
			Block block= methodDecl.getBody();
			assertTrue("No block" , block != null);
			
			List statements= methodDecl.getBody().statements();