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

review refactor: CtModifiable add/removeModifier #1706

Merged
merged 4 commits into from
Nov 10, 2017

Conversation

surli
Copy link
Collaborator

@surli surli commented Nov 9, 2017

Fix the documentation for CtModifiable#addModifier (Fix #1616)
Change the signature of CtModifiable#removeModifier to be consistent

@monperrus
Copy link
Collaborator

could you add a test on the returned type / object of add/removeModifier?

@surli
Copy link
Collaborator Author

surli commented Nov 9, 2017

could you add a test on the returned type / object of add/removeModifier?

Yes, in fact I was thinking about creating an enforcer rule for the set/get/add/remove methods of the different interfaces. But in another PR.

@INRIA INRIA deleted a comment from spoon-bot Nov 10, 2017
@surli
Copy link
Collaborator Author

surli commented Nov 10, 2017

could you add a test on the returned type / object of add/removeModifier?

Done.

@spoon-bot
Copy link
Collaborator

Detected changes by Revapi: 1.

Old API: fr.inria.gforge.spoon:spoon-core:jar:6.0.0-20171109.234516-155

New API: fr.inria.gforge.spoon:spoon-core:jar:6.0.0-SNAPSHOT

Name Change 1
Old method CtModifiable::removeModifier(ModifierKind)
New method CtModifiable::removeModifier(ModifierKind)
Code java.method.returnTypeChanged
Description The return type changed from 'boolean' to 'T extends spoon.reflect.declaration.CtModifiable'.
Breaking binary: breaking
Name Change 1
:---: :---:
Old method CtModifiable::removeModifier(ModifierKind)
New method CtModifiable::removeModifier(ModifierKind)
Code java.generics.elementNowParameterized
Description Element now defines formal type parameters.
Breaking binary: non_breaking,
Name Change 1
:---: :---:
Old method CtModifiable::removeModifier(ModifierKind)
New method CtModifiable::removeModifier(ModifierKind)
Code java.generics.formalTypeParameterAdded
Description A new formal type parameter added to element: 'T extends spoon.reflect.declaration.CtModifiable'.
Breaking binary: non_breaking

@INRIA INRIA deleted a comment from spoon-bot Nov 10, 2017
@monperrus monperrus merged commit fcd1b12 into INRIA:master Nov 10, 2017
@ghost
Copy link

ghost commented Nov 10, 2017

There appears to be a large amount of code duplication here that could be eliminated using a common superclass.

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