Mark deprecated methods with the @Deprecated annotation.