Fix [SonarQube] Right curly brace and next "else", "catch" and "finally"
keywords should be located on the same line
Fix [SonarQube]  Inefficient String Buffering (Avoid concatenating
nonliterals in a StringBuffer constructor or #append.)
Add spaces around assignment operator '='
Update javadocs.