Organising Eclipse static imports

By default Eclipse “Organise imports” doesn’t deal with static imports, so if you are using JUnit and want to write something like assertEquals(), it won’t be imported. However, you can add static imports to your Java preferences to get them available via the quick assist (CTRL+1). Details on stack overflow:

http://stackoverflow.com/questions/288861/eclipse-optimize-imports-to-include-static-imports

This entry was posted in Eclipse, Java and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

HTML tags are not allowed.

517,760 Spambots Blocked by Simple Comments