/
Java code style

Java code style

ONAP uses Google Java Style with some modifications:

  • 4.2 Block indentation: +4 spaces

  • 4.4 Column limit: 120

IDE code formatter configurations can be found in the Google Style Guide repo.

References

From Setting Up Your Development Environment#ONAPEclipseJavaFormatter:

As per https://gerrit.onap.org/r/gitweb?p=aai/aai-common.git;a=blob_plain;f=onap-java-formatter.xml;hb=refs/heads/master, 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. AAI-2198: Consistent code style in AAI for maven-checkstyle-plugin (onap-java-style)Closed) . TBC: This should probably be in oparent for all to share.



Related content

Configure Onap Code Style for Idea IDE
Configure Onap Code Style for Idea IDE
More like this
SDN-R Code style
SDN-R Code style
More like this
O-Parent (oparent)
O-Parent (oparent)
More like this
Building & Testing an ONAP Component Locally
Building & Testing an ONAP Component Locally
More like this
Building Entire ONAP
Building Entire ONAP
More like this
Required Tools
Required Tools
More like this