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

Overriding/OverriddenMethodFilter #452

Merged
merged 4 commits into from
Dec 14, 2015
Merged

Overriding/OverriddenMethodFilter #452

merged 4 commits into from
Dec 14, 2015

Conversation

GerardPaligot
Copy link
Contributor

Closes #274

public class OverridingMethodFilter implements Filter<CtMethod<?>> {
private final CtExecutableReference<?> executableReference;

public OverridingMethodFilter(CtExecutableReference<?> executableReference) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Take as parameter a CtMethod (and not a reference)?

avoid the getReference in usage (cf test) with encapsulatio

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

good idea to have a regular design. but I would rather update
CtInvocationFilter with a new constructor with a CtMethod.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't need a CtMethod in InvocationFilter. Why we should have a constructor useless?

@monperrus
Copy link
Collaborator

We don't need a CtMethod in InvocationFilter

We need it for regaularity in the API. And this will be useful for users in the future.

@GerardPaligot
Copy link
Contributor Author

@monperrus PR ok.

@monperrus monperrus merged commit 6f32275 into INRIA:master Dec 14, 2015
@GerardPaligot GerardPaligot deleted the feat_274 branch December 14, 2015 14:33
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.

2 participants