Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As per https://gerrit.onap.org/r/#/c/79312/1/onap-java-formatter.xml, an ONAP Eclipse Java Formatter XML file has been merged and can be imported into Eclipse. Updates to the settings should be committed and merged back into the repository (e.g.

Jira
serverONAP JIRA
serverId425b2b0a-557c-3c0c-b515-579789cceedb
keyAAI-2198
) . TBC: This should probably be in oparent for all to share.

Maven Plugins to Reformat Java code

As Using the Eclipse Formatter file above and maven plugin configuration in pom.xml as per https://gerrit.onap.org/r/#/c/79312/1/pom.xml, with pom.xml updated to have plugins  (https://code.revelc.net/formatter-maven-plugin/ for Eclipse formatter and https://github.com/diffplug/spotless/tree/master/plugin-maven for import order), the combination can be used in a maven command to rewrite code and imports, then checkstyle audit like so

...