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

Improve duplicate descriptor checking. #313

Merged
merged 1 commit into from Mar 21, 2016

Conversation

cgruber
Copy link
Contributor

@cgruber cgruber commented Mar 21, 2016

When checking FactoryMethodDescriptor's and ImplementationMethodDescriptor's for duplicates, remove the ImplementationMethodDescriptor and set the FactoryMethodDescriptor to be overriding and have the same visibility.

  • The test case, which is now modified to make the concrete class package-private, would not have worked before, because the create methods were given package-private visibility instead of public visibility.
  • This also makes it so that these duplicate methods have the @OverRide annotation.

Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=117186640

…iptor's for duplicates, remove the ImplementationMethodDescriptor and set the FactoryMethodDescriptor to be overriding and have the same visibility.

  - The test case, which has been modified to make the concrete class package-private, would not have worked before, because the create methods were given package-private visibility instead of public visibility.
  - This also makes it so that these duplicate methods have the @OverRide annotation.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=117186640
@cgruber cgruber force-pushed the internal_duplication_improvement branch from 6561434 to dac3fb5 Compare March 21, 2016 18:19
@eamonnmcmanus
Copy link
Member

LGTM

cgruber added a commit that referenced this pull request Mar 21, 2016
@cgruber cgruber merged commit 05f9fd0 into master Mar 21, 2016
@cgruber cgruber deleted the internal_duplication_improvement branch March 21, 2016 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants