Add javadoc
Fix [SonarQube] if/else/for/while/do statements should always use curly
braces