Fix error in javadoc with java 1.8

I recently switch to java8 and noticed that maven won't build AA because of some errors in javadoc.
This PR fixes the javadoc.