-
-
Notifications
You must be signed in to change notification settings - Fork 355
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
WiP: refactor: return types of Spoon model methods #2615
Conversation
I love this first massive refactoring with the sniper mode. Eat your own dog food! |
can you post them so as to inform our decision on this? |
here you are CSV with error descriptions: errors.csv |
a45df86
to
04a3e02
Compare
04a3e02
to
8a1eefc
Compare
I think I use HashSet everywhere for the imports, so we should change that to use LinkedHashSet and it should works almost immediately. |
It is true that HashSet is used, but then the imports are somehow "sorted", so any previous order is ignored anyway. I think only sniper mode should try to keep origin order of imports. The normal mode is just responsible for providing of correct set of imports, which can be then printed in somehow defined order. Actually the problem is that some imports are missing ... E.g. in CtElement the static CtRole.COMMENT. I made #2621 to fix it, but I run into bigger problems, so I need your feedback in #2624 |
Pass to close staled PRs. Feel free to reopen if appropriate. |
Alternative of #1852 as fix of #1846
The code of this PR was generated by SniperPrinter. The sources of generator are in this branch.
There are following problems, which has to be solved before we can merge it:
I can remove them manually before commit. Or it needs a fix in import scanner.