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
Expression newCaseExpression= ast.newNumberLiteral("10");
			rewrite.markAsReplaced(caseStatement.getExpression(), newCaseExpression);
			
			{
				
				SwitchCase caseStatement2= ast.newSwitchCase();
				caseStatement2.setExpression(ast.newNumberLiteral("11"));
				rewrite.markAsInserted(caseStatement2);
				statements.add(0, caseStatement2);
	
				
				Statement statement1= ast.newReturnStatement();
				rewrite.markAsInserted(statement1);
				statements.add(1, statement1);
			}
			
			{
				
				SwitchCase caseStatement2= ast.newSwitchCase();
				caseStatement2.setExpression(ast.newNumberLiteral("12"));
				rewrite.markAsInserted(caseStatement2);
				statements.add(caseStatement2);
	
				
				Statement statement1= ast.newReturnStatement();
				rewrite.markAsInserted(statement1);
				statements.add(statement1);
			}			
			
		}