Vladimir Sitnikov created CALCITE-4658: ------------------------------------------
Summary: Introduce refaster for automatic reformat of the code Key: CALCITE-4658 URL: https://issues.apache.org/jira/browse/CALCITE-4658 Project: Calcite Issue Type: Improvement Reporter: Vladimir Sitnikov 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)