jdanekrh commented on a change in pull request #2652:  ARTEMIS-2320 Assorted 
small code fixes, mostly from IntelliJ autofixes
URL: https://github.com/apache/activemq-artemis/pull/2652#discussion_r279201238
 
 

 ##########
 File path: 
tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/InVMInitialContextFactory.java
 ##########
 @@ -31,11 +31,7 @@
 
    // Static --------------------------------------------------------
 
-   private static Map<Integer, Context> initialContexts;
-
-   static {
-      InVMInitialContextFactory.reset();
-   }
+   private static final Map<Integer, Context> initialContexts = new 
HashMap<>();
 
 
 Review comment:
   Yes, but nobody was actually resetting it, in the codebase.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to