A deprecation warning indicates that a method is obsolete. Using a newer method (which has been provided in the meanwhile) is preferred.
A deprecation warning indicates that a method, property or other software feature is obsolete. Using a newer feature (which has been provided in the meanwhile) is preferred.