[
https://issues.apache.org/jira/browse/CALCITE-4658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17367831#comment-17367831
]
Chunwei Lei commented on CALCITE-4658:
--------------------------------------
+1 for having this tool.
> Introduce refaster for automatic code refactoring
> -------------------------------------------------
>
> Key: CALCITE-4658
> URL: https://issues.apache.org/jira/browse/CALCITE-4658
> Project: Calcite
> Issue Type: Improvement
> Reporter: Vladimir Sitnikov
> Priority: Major
>
> Sometimes we have API usage rules which require manual actions to correct.
> For instance, we "forbid" the use of {{Lists#newArrayList()}}, and suggest
> replacing it with {{new ArrayList()}}.
> It would be better if the build script could perform such replacements
> automatically.
> Refaster is a smart refactoring library for Java:
> https://errorprone.info/docs/refaster, and it could help us to keep the code
> up to date.
> Of course, forbidden-apis checks might still be there (e.g. for those who
> prefer manual replacements), however, adding automatic code cleanups would be
> great.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)