History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-8718
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Alexey Kudravtsev
Reporter: Matthew Flower
Votes: 4
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Allow code style to order static imports separate from imports

Created: 02 Aug 06 03:43   Updated: 06 Nov 08 23:32
Component/s: Code Formatting and Code Style
Fix Version/s: Undefined

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: Linux, Jdk 1.5

Build: 5,581
Severity: High


 Description  « Hide
I tend to order my static imports as follows:

import java.io.ByteArrayInputStream;
import junit.framework.TestCase;
import org.hibernate.FlushMode;
import org.hibernate.SessionFactory;
import org.hibernate.classic.Session;

import static java.lang.String.format;
import static org.easymock.classextension.EasyMock.createMock;
import static org.easymock.classextension.EasyMock.expect;

as opposed to sorting them with the rest of my imports. This doesn't seem to be possible with what's currently available in code style.

This is only high for me because it makes me unable to use optimize imports to eliminate unused imports. Every time I do, it changes the order of static imports which I have to fix manually.



 All   Comments   Work Log   Change History      Sort Order:
Keith Lea - 03 Jan 07 02:49
This causes problems for us because Eclipse does this by default, so when engineers on a team use both, the imports are constantly moving around.