- Use
google-java-formatfor code formatting. - Use wrapper classes instead of primitives. For example, use
Integerin place ofint. It helps us in distinguishing, when a value is not set. - Use
@Builderbased object construction instead ofnew. - Using
lombokannotations for any new classes. - All hardcoded constants appear as a
private static finalvariables at the top of the class.