diff --git a/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/PasswordMaskingUtil.java b/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/PasswordMaskingUtil.java index 796f1d823c..e9df0b263e 100644 --- a/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/PasswordMaskingUtil.java +++ b/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/PasswordMaskingUtil.java @@ -123,7 +123,7 @@ public final class PasswordMaskingUtil { } private static boolean isEncoded(String storedPassword) { - return storedPassword == null || (isEncMasked(storedPassword)); + return storedPassword == null || isEncMasked(storedPassword); } public static HashProcessor getHashProcessor() { @@ -164,7 +164,7 @@ public final class PasswordMaskingUtil { try { // Service load the codec, if a service is available for (SensitiveDataCodec codec : serviceLoader) { - if ((codec.getClass().getCanonicalName()).equals(codecClassName)) { + if (codec.getClass().getCanonicalName().equals(codecClassName)) { return codec.getClass().newInstance(); } } diff --git a/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/collections/ConcurrentAppendOnlyChunkedListTest.java b/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/collections/ConcurrentAppendOnlyChunkedListTest.java index a4f405971a..922c78024b 100644 --- a/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/collections/ConcurrentAppendOnlyChunkedListTest.java +++ b/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/collections/ConcurrentAppendOnlyChunkedListTest.java @@ -49,7 +49,7 @@ public class ConcurrentAppendOnlyChunkedListTest { final int messages = ELEMENTS; for (int i = 0; i < messages; i++) { Assert.assertEquals(i, chunkedList.size()); - chunkedList.add((i)); + chunkedList.add(i); } Assert.assertEquals(messages, chunkedList.size()); } diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/InflaterReader.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/InflaterReader.java index 62e118cab9..183989f4f0 100644 --- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/InflaterReader.java +++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/InflaterReader.java @@ -56,9 +56,7 @@ public class InflaterReader extends InputStream { } pointer = 0; } catch (DataFormatException e) { - IOException e2 = new IOException(e.getMessage()); - e2.initCause(e); - throw e2; + throw new IOException(e.getMessage(), e); } } diff --git a/artemis-core-client/src/test/java/org/apache/activemq/artemis/core/remoting/impl/netty/SharedEventLoopGroupTest.java b/artemis-core-client/src/test/java/org/apache/activemq/artemis/core/remoting/impl/netty/SharedEventLoopGroupTest.java index bb5cbb7b30..618d5ebf61 100644 --- a/artemis-core-client/src/test/java/org/apache/activemq/artemis/core/remoting/impl/netty/SharedEventLoopGroupTest.java +++ b/artemis-core-client/src/test/java/org/apache/activemq/artemis/core/remoting/impl/netty/SharedEventLoopGroupTest.java @@ -37,7 +37,7 @@ public class SharedEventLoopGroupTest { Thread t1 = new Thread(new Runnable() { @Override public void run() { - sharedEventLoopGroup1.set(SharedEventLoopGroup.getInstance((threadFactory -> customNioEventLoopGroup))); + sharedEventLoopGroup1.set(SharedEventLoopGroup.getInstance(threadFactory -> customNioEventLoopGroup)); customNioEventLoopGroup.setCyclicBarrier(barrier); sharedEventLoopGroup1.get().shutdownGracefully(); customNioEventLoopGroup.setCyclicBarrier(null); @@ -51,7 +51,7 @@ public class SharedEventLoopGroupTest { public void run() { try { barrier.await(); - sharedEventLoopGroup2.set(SharedEventLoopGroup.getInstance((threadFactory -> new NioEventLoopGroup(2, threadFactory)))); + sharedEventLoopGroup2.set(SharedEventLoopGroup.getInstance(threadFactory -> new NioEventLoopGroup(2, threadFactory))); } catch (InterruptedException e) { e.printStackTrace(); } catch (BrokenBarrierException e) { diff --git a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/html/brokerDiagram.html b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/html/brokerDiagram.html index 9d0fd05ea4..f97ecdd53b 100644 --- a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/html/brokerDiagram.html +++ b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/html/brokerDiagram.html @@ -82,7 +82,7 @@ rect.graphbox.frame { path.link { fill: none; stroke: #666; - stroke-width: 1.5px; b + stroke-width: 1.5px; } marker.broker { diff --git a/artemis-jms-client/src/test/java/org/apache/activemq/artemis/uri/ConnectionFactoryURITest.java b/artemis-jms-client/src/test/java/org/apache/activemq/artemis/uri/ConnectionFactoryURITest.java index 9c1b9b8d6c..e23971a6fd 100644 --- a/artemis-jms-client/src/test/java/org/apache/activemq/artemis/uri/ConnectionFactoryURITest.java +++ b/artemis-jms-client/src/test/java/org/apache/activemq/artemis/uri/ConnectionFactoryURITest.java @@ -212,7 +212,7 @@ public class ConnectionFactoryURITest { populateConnectorParams(props3, allowableConnectorKeys, sb); sb.append(")?ha=true&clientID=myID"); - ActiveMQConnectionFactory factory = parser.newObject(parser.expandURI((sb.toString())), null); + ActiveMQConnectionFactory factory = parser.newObject(parser.expandURI(sb.toString()), null); TransportConfiguration[] staticConnectors = factory.getStaticConnectors(); Assert.assertEquals(3, staticConnectors.length); diff --git a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/package.html b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/package.html index de1602c3a8..274259d655 100644 --- a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/package.html +++ b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/package.html @@ -2,7 +2,6 @@ -