Fix checkstyle curly brace violations
This commit is contained in:
parent
fb56cc7414
commit
e493748040
|
@ -454,8 +454,7 @@ public final class XmlDataImporter extends ActionAbstract {
|
||||||
else {
|
else {
|
||||||
String characters = new String(reader.getTextCharacters(), reader.getTextStart(), reader.getTextLength());
|
String characters = new String(reader.getTextCharacters(), reader.getTextStart(), reader.getTextLength());
|
||||||
String trimmedCharacters = characters.trim();
|
String trimmedCharacters = characters.trim();
|
||||||
if (trimmedCharacters.length() > 0) // this will skip "indentation" characters
|
if (trimmedCharacters.length() > 0) { // this will skip "indentation" characters
|
||||||
{
|
|
||||||
byte[] data = decode(trimmedCharacters);
|
byte[] data = decode(trimmedCharacters);
|
||||||
out.write(data);
|
out.write(data);
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,8 +34,8 @@ public class ChannelBufferWrapper implements ActiveMQBuffer {
|
||||||
|
|
||||||
public static ByteBuf unwrap(ByteBuf buffer) {
|
public static ByteBuf unwrap(ByteBuf buffer) {
|
||||||
ByteBuf parent;
|
ByteBuf parent;
|
||||||
while ((parent = buffer.unwrap()) != null && parent != buffer) // this last part is just in case the semantic
|
while ((parent = buffer.unwrap()) != null && parent != buffer) { // this last part is just in case the semantic
|
||||||
{ // ever changes where unwrap is returning itself
|
// ever changes where unwrap is returning itself
|
||||||
buffer = parent;
|
buffer = parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -847,8 +847,7 @@ public class Base64 {
|
||||||
sbiCrop = (byte) (source[i] & 0x7f); // Only the low seven bits
|
sbiCrop = (byte) (source[i] & 0x7f); // Only the low seven bits
|
||||||
sbiDecode = DECODABET[sbiCrop];
|
sbiDecode = DECODABET[sbiCrop];
|
||||||
|
|
||||||
if (sbiDecode >= Base64.WHITE_SPACE_ENC) // White space, Equals sign or better
|
if (sbiDecode >= Base64.WHITE_SPACE_ENC) { // White space, Equals sign or better
|
||||||
{
|
|
||||||
if (sbiDecode >= Base64.EQUALS_SIGN_ENC) {
|
if (sbiDecode >= Base64.EQUALS_SIGN_ENC) {
|
||||||
b4[b4Posn++] = sbiCrop;
|
b4[b4Posn++] = sbiCrop;
|
||||||
if (b4Posn > 3) {
|
if (b4Posn > 3) {
|
||||||
|
|
|
@ -543,13 +543,11 @@ public final class ClientSessionImpl implements ClientSessionInternal, FailureLi
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void rollback(final boolean isLastMessageAsDelivered) throws ActiveMQException
|
public void rollback(final boolean isLastMessageAsDelivered) throws ActiveMQException {
|
||||||
{
|
|
||||||
rollback(isLastMessageAsDelivered, true);
|
rollback(isLastMessageAsDelivered, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void rollback(final boolean isLastMessageAsDelivered, final boolean waitConsumers) throws ActiveMQException
|
public void rollback(final boolean isLastMessageAsDelivered, final boolean waitConsumers) throws ActiveMQException {
|
||||||
{
|
|
||||||
if (logger.isTraceEnabled()) {
|
if (logger.isTraceEnabled()) {
|
||||||
logger.trace("calling rollback(isLastMessageAsDelivered=" + isLastMessageAsDelivered + ")");
|
logger.trace("calling rollback(isLastMessageAsDelivered=" + isLastMessageAsDelivered + ")");
|
||||||
}
|
}
|
||||||
|
|
|
@ -1094,8 +1094,7 @@ public class LargeMessageControllerImpl implements LargeMessageController {
|
||||||
throw new IndexOutOfBoundsException();
|
throw new IndexOutOfBoundsException();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentPacket.chunk == null) // Empty packet as a signal to interruption
|
if (currentPacket.chunk == null) { // Empty packet as a signal to interruption
|
||||||
{
|
|
||||||
currentPacket = null;
|
currentPacket = null;
|
||||||
streamEnded = true;
|
streamEnded = true;
|
||||||
throw new IndexOutOfBoundsException();
|
throw new IndexOutOfBoundsException();
|
||||||
|
|
|
@ -31,8 +31,7 @@ import org.junit.Test;
|
||||||
public class AcceptorsTest extends ActiveMQTestBase {
|
public class AcceptorsTest extends ActiveMQTestBase {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testMultipleAcceptorsWithSameHostPortDifferentName() throws Exception
|
public void testMultipleAcceptorsWithSameHostPortDifferentName() throws Exception {
|
||||||
{
|
|
||||||
final String acceptorFactoryClass = FakeAcceptorFactory.class.getName();
|
final String acceptorFactoryClass = FakeAcceptorFactory.class.getName();
|
||||||
|
|
||||||
Map<String, Object> params = new HashMap<>();
|
Map<String, Object> params = new HashMap<>();
|
||||||
|
|
Loading…
Reference in New Issue