Fix JDK8 javadoc issues

Fixed errors when running mvn site on JDK8.
These were caused by the backwards-compatibility breaking changes of javadoc in JDK8.