Automated Tool to optimize import generation #22
Labels
No Label
Documentated
Implemented
Tested
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Speiger/Primitive-Collections#22
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Idea is that Imports are generated through templates.
Though sometimes mistakes are made.
So the idea is to write a import tool that reverses the logic.
First run through all the sourcecode in the IDE and force a "organize imports" that will make basically imports done properly sorted.
After that is done run a tool scan all the .java files that are auto generated and copy in all "imports". Then templificate the imports and compare which each implementation needs them.
Once that is done output the import section. Either through console or directly into the file itself.
Console would make most sense since that would secure templates never being written to, and just read from.