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
WFLY-15725 Replace duplicate ThreadLocalStack classes with a common one #15398
Conversation
@RanabirChakraborty can you change the PR title to the issue synopsis? same for the commit message. When the PR is ready, can you restart the CI run? |
0884421
to
e780cef
Compare
@@ -26,7 +26,7 @@ | |||
import org.jboss.as.ee.concurrent.handle.SetupContextHandle; | |||
import org.jboss.as.ee.logging.EeLogger; | |||
import org.jboss.as.ee.concurrent.handle.ContextHandleFactory; | |||
import org.jboss.as.naming.util.ThreadLocalStack; | |||
import org.wildfly.common.function.ThreadLocalStack; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move this import to the new correct alphabetical location.
@@ -24,7 +24,7 @@ | |||
import org.jboss.as.ee.component.ComponentInstance; | |||
import org.jboss.as.ejb3.logging.EjbLogger; | |||
import org.jboss.as.ejb3.component.EjbComponentInstance; | |||
import org.jboss.as.ejb3.util.ThreadLocalStack; | |||
import org.wildfly.common.function.ThreadLocalStack; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move this import to the new correct alphabetical location.
@@ -26,7 +26,7 @@ | |||
|
|||
import java.util.HashMap; | |||
import java.util.Map; | |||
|
|||
import org.wildfly.common.function.ThreadLocalStack; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move this import to the new correct alphabetical location.
@@ -26,7 +26,7 @@ | |||
import org.jboss.as.naming.deployment.RuntimeBindReleaseService; | |||
import org.jboss.as.naming.logging.NamingLogger; | |||
import org.jboss.as.naming.service.BinderService; | |||
import org.jboss.as.naming.util.ThreadLocalStack; | |||
import org.wildfly.common.function.ThreadLocalStack; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move this import to the new correct alphabetical location.
e780cef
to
db7d40d
Compare
@bstansberry did the changes accordingly. |
@RanabirChakraborty did you add wildfly-common as a dep in module.xml for the affected modules, if wildfly-common is not already there? |
db7d40d
to
e7fd18e
Compare
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
import javax.persistence.EntityManager; | ||
import static org.jboss.as.jpa.messages.JpaLogger.ROOT_LOGGER; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@RanabirChakraborty The 'import static' should be first.
Our code style is:
import static
java.* (alphabetical)
javax.* (alphabetical)
other.* (alphabetical)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! @bstansberry did the changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last import ordering thing and this should be good to merge.
e7fd18e
to
9c3ae40
Compare
Thanks, @RanabirChakraborty |
Issue: https://issues.redhat.com/browse/WFLY-15725