Fix javadoc errors to pass jdk8 build on travis