update javadocs to 4.0.1 and 3.5.1