From 4a4442ed565f6aff6679707d8992623dbd455f83 Mon Sep 17 00:00:00 2001 From: Justin Bertram Date: Thu, 31 Oct 2019 09:23:05 -0500 Subject: [PATCH] NO-JIRA checkstyle upgrade --- .../artemis/jms/client/ActiveMQMessage.java | 15 +++++---------- .../compatible1X/ActiveMQCompatibleMessage.java | 15 +++++---------- etc/checkstyle.xml | 4 +--- pom.xml | 6 +++--- 4 files changed, 14 insertions(+), 26 deletions(-) diff --git a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessage.java b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessage.java index 6a6292b613..7cc6c472d8 100644 --- a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessage.java +++ b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessage.java @@ -140,18 +140,15 @@ public class ActiveMQMessage implements javax.jms.Message { ActiveMQMessage msg; switch (type) { - case ActiveMQMessage.TYPE: // 0 - { + case ActiveMQMessage.TYPE: { // 0 msg = new ActiveMQMessage(message, session); break; } - case ActiveMQBytesMessage.TYPE: // 4 - { + case ActiveMQBytesMessage.TYPE: { // 4 msg = new ActiveMQBytesMessage(message, session); break; } - case ActiveMQMapMessage.TYPE: // 5 - { + case ActiveMQMapMessage.TYPE: { // 5 msg = new ActiveMQMapMessage(message, session); break; } @@ -159,13 +156,11 @@ public class ActiveMQMessage implements javax.jms.Message { msg = new ActiveMQObjectMessage(message, session, options); break; } - case ActiveMQStreamMessage.TYPE: // 6 - { + case ActiveMQStreamMessage.TYPE: { // 6 msg = new ActiveMQStreamMessage(message, session); break; } - case ActiveMQTextMessage.TYPE: // 3 - { + case ActiveMQTextMessage.TYPE: { // 3 msg = new ActiveMQTextMessage(message, session); break; } diff --git a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/compatible1X/ActiveMQCompatibleMessage.java b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/compatible1X/ActiveMQCompatibleMessage.java index 9248e8e415..51f34c5997 100644 --- a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/compatible1X/ActiveMQCompatibleMessage.java +++ b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/compatible1X/ActiveMQCompatibleMessage.java @@ -164,18 +164,15 @@ public class ActiveMQCompatibleMessage extends ActiveMQMessage { ActiveMQMessage msg; switch (type) { - case ActiveMQMessage.TYPE: // 0 - { + case ActiveMQMessage.TYPE: { // 0 msg = new ActiveMQCompatibleMessage(message, session); break; } - case ActiveMQBytesMessage.TYPE: // 4 - { + case ActiveMQBytesMessage.TYPE: { // 4 msg = new ActiveMQBytesCompatibleMessage(message, session); break; } - case ActiveMQMapMessage.TYPE: // 5 - { + case ActiveMQMapMessage.TYPE: { // 5 msg = new ActiveMQMapCompatibleMessage(message, session); break; } @@ -183,13 +180,11 @@ public class ActiveMQCompatibleMessage extends ActiveMQMessage { msg = new ActiveMQObjectCompatibleMessage(message, session, options); break; } - case ActiveMQStreamMessage.TYPE: // 6 - { + case ActiveMQStreamMessage.TYPE: { // 6 msg = new ActiveMQStreamCompatibleMessage(message, session); break; } - case ActiveMQTextMessage.TYPE: // 3 - { + case ActiveMQTextMessage.TYPE: { // 3 msg = new ActiveMQTextCompatibleMessage(message, session); break; } diff --git a/etc/checkstyle.xml b/etc/checkstyle.xml index f695bef59a..c1c6aec69a 100644 --- a/etc/checkstyle.xml +++ b/etc/checkstyle.xml @@ -64,9 +64,7 @@ under the License. - - - + diff --git a/pom.xml b/pom.xml index 873feb4841..35ce4ed83e 100644 --- a/pom.xml +++ b/pom.xml @@ -1561,17 +1561,17 @@ org.apache.maven.plugins maven-checkstyle-plugin - 2.17 + 3.0.0 com.github.sevntu-checkstyle sevntu-checkstyle-maven-plugin - 1.24.0 + 1.29.0 com.puppycrawl.tools checkstyle - 7.7 + 8.18