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

Fix SuperInheritanceHierarchyFunction in noClassPath mode #1281

Merged
merged 3 commits into from
May 4, 2017

Conversation

pvojtechovsky
Copy link
Collaborator

This PR improves algorithm of SuperInheritanceHierarchyFunction by way it works better in no class path mode.
This fix is needed to pass tests of #1220

@spoon-bot
Copy link
Collaborator

Revapi Analysis results

Old API: fr.inria.gforge.spoon:spoon-core:jar:5.7.0-20170503.161928-72

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

Detected changes: 0.

* Use it instead of {@link CtScannerListener}
* if you need to know whether visited type reference is class or interface
*/
public static class Listener implements CtScannerListener {
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we make this class private or package protected?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is better CtScannerListener. so it might be interesting for some spoon clients.
It is true that they might extend DistinctTypeListener too, but it provides some extra behavior, which might be NOT needed by some clients.
But technically I can make it private, so we keep Spoon API as small as possible.
So should I really make it private?

@monperrus
Copy link
Collaborator

monperrus commented May 4, 2017 via email

@spoon-bot
Copy link
Collaborator

Revapi Analysis results

Old API: fr.inria.gforge.spoon:spoon-core:jar:5.7.0-20170504.074858-74

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

Detected changes: 0.

@pvojtechovsky
Copy link
Collaborator Author

It is private now

@monperrus monperrus merged commit 8ca2213 into INRIA:master May 4, 2017
@pvojtechovsky pvojtechovsky deleted the fixInheritanceScnNoCP branch May 5, 2017 16:45
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