diff --git a/activemq-jms-pool/src/test/java/org/apache/activemq/jms/pool/XAConnectionPoolTest.java b/activemq-jms-pool/src/test/java/org/apache/activemq/jms/pool/XAConnectionPoolTest.java index d793759d36..a4ea122f24 100644 --- a/activemq-jms-pool/src/test/java/org/apache/activemq/jms/pool/XAConnectionPoolTest.java +++ b/activemq-jms-pool/src/test/java/org/apache/activemq/jms/pool/XAConnectionPoolTest.java @@ -322,8 +322,8 @@ public class XAConnectionPoolTest extends JmsPoolTestSupport { public void testBindableEnvOverrides() throws Exception { XaPooledConnectionFactory pcf = new XaPooledConnectionFactory(); assertTrue(pcf instanceof ObjectFactory); - Hashtable environment = new Hashtable(); - environment.put("tmFromJndi", String.valueOf(Boolean.FALSE)); + Hashtable environment = new Hashtable<>(); + environment.put("tmFromJndi", Boolean.FALSE); assertTrue(((ObjectFactory) pcf).getObjectInstance(null, null, null, environment) instanceof XaPooledConnectionFactory); assertFalse(pcf.isTmFromJndi()); pcf.stop();