Add the deprecated note in the javadoc