Created
August 14, 2015 12:35
-
-
Save anonymous/4c6031980f736c3d9323 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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