Use Javadoc doclint (accessibility and reference).

We cannot use syntax because the Hamcrest sources have invalid syntax.