[misc] Fixed deprecated misleading javadoc
[cleanup] Fixed checkstyle errors