checkstyle Misc Rules

checkstyle Nesting

checkstyle GenericWhitespace

checkstyle MethodParamPad

checkstyle NoWhiteSpace

checkstyle ParenPad Script

checkstyle ParenPad
This commit is contained in:
Gary Russell
2016-04-05 14:58:29 -04:00
committed by Artem Bilan
parent 05cc7be644
commit 57f96bb759
87 changed files with 737 additions and 628 deletions

View File

@@ -66,7 +66,7 @@ public class MultiClientTests {
final AtomicBoolean done = new AtomicBoolean();
for (int i = 0; i < drivers; i++) {
Thread t = new Thread( new Runnable() {
Thread t = new Thread(new Runnable() {
@Override
public void run() {
UnicastSendingMessageHandler sender = new UnicastSendingMessageHandler(
@@ -85,10 +85,10 @@ public class MultiClientTests {
t.setDaemon(true);
t.start();
}
for (int i = 0; i < drivers * 3 ; i++) {
for (int i = 0; i < drivers * 3; i++) {
queueIn.send(MessageBuilder.withPayload(payload).build());
}
for (int i = 0; i < drivers * 3 ; i++) {
for (int i = 0; i < drivers * 3; i++) {
Message<byte[]> messageOut = (Message<byte[]>) queue.receive(10000);
assertNotNull(messageOut);
Assert.assertEquals(payload, new String(messageOut.getPayload()));
@@ -116,7 +116,7 @@ public class MultiClientTests {
for (int i = 0; i < drivers; i++) {
final int j = i;
Thread t = new Thread( new Runnable() {
Thread t = new Thread(new Runnable() {
@Override
public void run() {
UnicastSendingMessageHandler sender = new UnicastSendingMessageHandler(
@@ -138,10 +138,10 @@ public class MultiClientTests {
t.setDaemon(true);
t.start();
}
for (int i = 0; i < drivers * 3 ; i++) {
for (int i = 0; i < drivers * 3; i++) {
queueIn.send(MessageBuilder.withPayload(payload).build());
}
for (int i = 0; i < drivers * 3 ; i++) {
for (int i = 0; i < drivers * 3; i++) {
Message<byte[]> messageOut = (Message<byte[]>) queue.receive(20000);
assertNotNull(messageOut);
Assert.assertEquals(payload, new String(messageOut.getPayload()));
@@ -169,7 +169,7 @@ public class MultiClientTests {
for (int i = 0; i < drivers; i++) {
final int j = i;
Thread t = new Thread( new Runnable() {
Thread t = new Thread(new Runnable() {
@Override
public void run() {
UnicastSendingMessageHandler sender = new UnicastSendingMessageHandler(
@@ -191,10 +191,10 @@ public class MultiClientTests {
t.setDaemon(true);
t.start();
}
for (int i = 0; i < drivers * 3 ; i++) {
for (int i = 0; i < drivers * 3; i++) {
queueIn.send(MessageBuilder.withPayload(payload).build());
}
for (int i = 0; i < drivers * 3 ; i++) {
for (int i = 0; i < drivers * 3; i++) {
Message<byte[]> messageOut = (Message<byte[]>) queue.receive(10000);
assertNotNull(messageOut);
Assert.assertEquals(payload, new String(messageOut.getPayload()));

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2010 the original author or authors.
* Copyright 2002-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -29,7 +29,7 @@ public class RegexUtilsTests {
* Verify that we properly escape all special characters for matching regex
*/
@Test
public void testRegex () {
public void testRegex() {
String s = "xxx$^[]{()}+*\\?|.xxx";
assertEquals("xxx\\$\\^\\[\\]\\{\\(\\)\\}\\+\\*\\\\\\?\\|\\.xxx", RegexUtils.escapeRegexSpecials(s));
}