Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Added deprecated attribute to dataTaskWithRequest:completionHandler: #3490

Merged
merged 2 commits into from
May 6, 2016

Conversation

dchohfi
Copy link
Contributor

@dchohfi dchohfi commented May 3, 2016

It's dangers to leave dataTaskWithRequest:completionHandler: method without deprecated mark, as this method is now overloaded, and calling a different one, it breaks compatibility with previous overridden methods.

@dchohfi dchohfi changed the title Deprecating method declared on AFURLSessionManager Deprecating method declared in AFURLSessionManager May 3, 2016
@dchohfi
Copy link
Contributor Author

dchohfi commented May 5, 2016

@kcharwood what you think about that?

@kcharwood kcharwood changed the title Deprecating method declared in AFURLSessionManager Added deprecated attribute to dataTaskWithRequest:completionHandler: May 6, 2016
@kcharwood kcharwood merged commit 59d5111 into AFNetworking:master May 6, 2016
@zhw511006
Copy link

which one is preferred? Thx!

@dchohfi
Copy link
Contributor Author

dchohfi commented Jul 4, 2016

hey @zhw511006, you should be using the new one, as the method isn't called internally. The method is marked as deprecated to prevent subclasses from overriding it.

@dchohfi dchohfi deleted the deprecating-method branch July 4, 2016 17:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants