2.6: Add proper deprecation warnings to two methods.

These were deprecated in the scaladoc but not annotated as such, so did not
emit warnings.