You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it does not define Organize imports, so I run into Checkstyle issues like:
[ERROR] src/test/java/com/sun/enterprise/resource/pool/mock/ManagedConnectionFactoryMock.java:[24,1] (imports) ImportOrder: Wrong order for 'jakarta.resource.ResourceException' import.
[ERROR] src/test/java/com/sun/enterprise/resource/pool/mock/ManagedConnectionMock.java:[24,1] (imports) ImportOrder: Wrong order for 'jakarta.resource.ResourceException' import.
[ERROR] src/test/java/com/sun/enterprise/resource/pool/mock/TransactionalResourceMock.java:[21,1] (imports) ImportOrder: Wrong order for 'jakarta.transaction.Transaction' import.
[ERROR] src/test/java/com/sun/enterprise/resource/ConnectorXAResourceTest.java:[25,1] (imports) ImportOrder: Wrong order for 'javax.security.auth.Subject' import.
[ERROR] src/test/java/com/sun/enterprise/resource/ConnectorXAResourceTest.java:[32,1] (imports) ImportOrder: Wrong order for 'com.sun.appserv.connectors.internal.api.ConnectorRuntimeException' import.
Is there an Organize Imports configuration available for Eclipse IDE to be used?
(Java -> Code Style -> Organize Imports -> Import...)
I currently use:
- com
- jakarta
- java
- javax
- org
=== static:
- org.junit
and add new packages when it is needed for another checkstyle error.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, when I set up a new Eclipse IDE environment, I apply the formatter from https://github.com/eclipse-ee4j/ee4j/tree/main/codestyle.
But it does not define Organize imports, so I run into Checkstyle issues like:
Is there an Organize Imports configuration available for Eclipse IDE to be used?
(Java -> Code Style -> Organize Imports -> Import...)
I currently use:
and add new packages when it is needed for another checkstyle error.
Like:

Br, Martijn
Beta Was this translation helpful? Give feedback.
All reactions