Skip to content

Implementation of NSCoding for URLCredential #708

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 8, 2016

Conversation

naithar
Copy link
Contributor

@naithar naithar commented Nov 8, 2016

Implemented a Keyed coding for URLCredentials. Non keyed is not supported in MacOS Foundation, so it's wasn't implemented.
Added test to cover NSCoding changes.
Overriden isEqual method to match MacOS Foundation.

URLCredential NSCoding implementation

URLCredential isEqual override

status update

status
@naithar
Copy link
Contributor Author

naithar commented Nov 8, 2016

Isn't NSCopying for URLCredentials actually implemented since it's not marked NSUnimplemented() and matches the MacOS behavior?

return false
}

guard other !== self else {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A style note, but this feels more like a traditional if/else than a guard to me. I'd like to preserve the use of guard for preconditions and such.

@naithar
Copy link
Contributor Author

naithar commented Nov 8, 2016

@parkera updated

@parkera
Copy link
Contributor

parkera commented Nov 8, 2016

@swift-ci please test and merge

@parkera
Copy link
Contributor

parkera commented Nov 8, 2016

thanks!

@swift-ci swift-ci merged commit d379c32 into swiftlang:master Nov 8, 2016
@naithar naithar mentioned this pull request Jan 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants