Add javadoc.
Fix warning.