NO-JIRA checkstyle upgrade

This commit is contained in:
Justin Bertram 2019-10-31 09:23:05 -05:00 committed by Clebert Suconic
parent 367f18bee3
commit 4a4442ed56
4 changed files with 14 additions and 26 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -64,9 +64,7 @@ under the License.
<!-- Checks the style of array type definitions. -->
<module name="ArrayTypeStyle"/>
<!-- Make sure left curly braces are on the same line. -->
<module name="LeftCurly">
<property name="maxLineLength" value="100"/>
</module>
<module name="LeftCurly"/>
<module name="RightCurly"/>
<module name="RightCurly">

View File

@ -1561,17 +1561,17 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.17</version>
<version>3.0.0</version>
<dependencies>
<dependency>
<groupId>com.github.sevntu-checkstyle</groupId>
<artifactId>sevntu-checkstyle-maven-plugin</artifactId>
<version>1.24.0</version>
<version>1.29.0</version>
</dependency>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>7.7</version>
<version>8.18</version>
</dependency>
</dependencies>
<configuration>