Javadoc newJavadoc= ast.newJavadoc(); newJavadoc.setComment(oldDeclaration.getJavadoc().getComment()); newDeclaration.setJavadoc(newJavadoc);
String source= oldJavaDoc.getComment(); String[] lines= Strings.convertIntoLines(source); Strings.trimIndentation(lines, CodeFormatterUtil.getTabWidth(), false); source= Strings.concatenate(lines, StubUtility.getLineDelimiterUsed(member)); Javadoc newJavaDoc= (Javadoc)rewrite.createPlaceholder(source, ASTRewrite.JAVADOC); newDeclaration.setJavadoc(newJavaDoc);
	private static void copyJavadocNode(AST ast, BodyDeclaration oldDeclaration, BodyDeclaration newDeclaration) {		if (oldDeclaration.getJavadoc() == null)			return;		Javadoc newJavadoc= ast.newJavadoc();		newJavadoc.setComment(oldDeclaration.getJavadoc().getComment());		newDeclaration.setJavadoc(newJavadoc);	}