Skip to content
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

Revert Call to a protected class instead of package-private #1687

Merged

Conversation

peknudsen
Copy link
Contributor

Monitoring libraries such as New Relic need to have the ability to subclass certain interesting classes in order to provide effective instrumentation. In previous versions of Okhttp, the Call constructor was protected, but it seems this changed in v2.4. This commit reverts Call from package-private to protected to allow for instrumentation.

@iNoles
Copy link
Contributor

iNoles commented Jun 4, 2015

I thought it was package-protected by default.

@peknudsen
Copy link
Contributor Author

Sanity checking myself, but Java classes should be package-private with no modifier specified.

swankjesse added a commit that referenced this pull request Jun 5, 2015
…cted

Revert Call to a protected class instead of package-private
@swankjesse swankjesse merged commit 97262e5 into square:master Jun 5, 2015
@peknudsen peknudsen deleted the CallConstructorPrivateToProtected branch June 5, 2015 16:21
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