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: test and fix untested method createNewClass() #2943

Merged
merged 1 commit into from
May 6, 2019

Conversation

monperrus
Copy link
Collaborator

No description provided.

*/
public <T> CtNewClass<T> createNewClass(CtTypeReference<T> type, CtClass<?> anonymousClass, CtExpression<?>...parameters) {
public <T> CtNewClass<T> createNewClass(CtType<T> superClass, CtExpression<?>...parameters) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm surprised that revapi is not complaining there?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not a huge fan on this signature change: it's really a potential breaking change for users. Why don't you keep the existing one and add a new one?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This method 1) was useless and incorrect 1) is not used anywhere (consequence of 1))

So I'd say there is no need to keep this technical debt.

@monperrus
Copy link
Collaborator Author

monperrus commented Apr 10, 2019 via email

@monperrus
Copy link
Collaborator Author

ready to merge

@nharrand nharrand merged commit 3626c5c into INRIA:master May 6, 2019
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.

3 participants