Format per coding standard
Fix [SonarQube] Avoid commented-out lines of code (A block of
commented-out lines of code should be removed)
Add javadoc
Fix [SonarQube] Synchronized class StringBuffer should not be used
(Replace the synchronized class "StringBuffer" by an unsynchronized one
such as "StringBuilder")
Delete unused local variable
Update javadoc