Skip to content

Instantly share code, notes, and snippets.


Created Aug 14, 2015
What would you like to do?
ASTNode replacement = astRewrite.createStringPlaceholder(
"// " + unsupportedStmt.toString().trim(), ASTNode.EMPTY_STATEMENT);
astRewrite.replace(unsupportedStmt, replacement, null);
ASTNode toDoComment = astRewrite.createStringPlaceholder(
"// TODO: Method is not supported any more.", ASTNode.EMPTY_STATEMENT);
astRewrite.getListRewrite(unsupportedStmt.getParent(), Block.STATEMENTS_PROPERTY)
.insertBefore(toDoComment, unsupportedStmt, null);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment