fix building on jdk8, avoid javadoc lint failures