Add javadoc on deprecated methods