fix javadoc failures when compiling with Java-8