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: compute CtRole#forName without synonym #1702

Merged
merged 3 commits into from
Nov 12, 2017

Conversation

surli
Copy link
Collaborator

@surli surli commented Nov 9, 2017

This refactor is an alternative of #1603 it just get rid of synonyms and only consider given role names. As @monperrus said it's not backward compatible but it's not a huge problem especially if it's integrated in Spoon 6.0.0

@monperrus
Copy link
Collaborator

OK for me.
Would you add a test?

@tdurieux
Copy link
Collaborator

tdurieux commented Nov 9, 2017

It can be a problem for me, I used it but I don't remember where ...

@surli
Copy link
Collaborator Author

surli commented Nov 9, 2017

It can be a problem for me, I used it but I don't remember where ...

So, when you'll have a crash you'll know where you used it 😄

@surli surli changed the title WiP refactor: compute CtRole#forName without synonym review refactor: compute CtRole#forName without synonym Nov 10, 2017
@monperrus
Copy link
Collaborator

I think this is a good PR that simplifies maintenance

if (tokens.length == 1) {
return s;
} else {
StringBuffer buffer = new StringBuffer(tokens[0]);
Copy link
Contributor

Choose a reason for hiding this comment

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

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.

4 participants