Fix checkstyle curly brace violations

This commit is contained in:
Ville Skyttä 2016-06-13 18:21:43 +03:00
parent fb56cc7414
commit e493748040
6 changed files with 8 additions and 14 deletions

View File

@ -454,8 +454,7 @@ public final class XmlDataImporter extends ActionAbstract {
else {
String characters = new String(reader.getTextCharacters(), reader.getTextStart(), reader.getTextLength());
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);
out.write(data);
}

View File

@ -34,8 +34,8 @@ public class ChannelBufferWrapper implements ActiveMQBuffer {
public static ByteBuf unwrap(ByteBuf buffer) {
ByteBuf parent;
while ((parent = buffer.unwrap()) != null && parent != buffer) // this last part is just in case the semantic
{ // ever changes where unwrap is returning itself
while ((parent = buffer.unwrap()) != null && parent != buffer) { // this last part is just in case the semantic
// ever changes where unwrap is returning itself
buffer = parent;
}

View File

@ -847,8 +847,7 @@ public class Base64 {
sbiCrop = (byte) (source[i] & 0x7f); // Only the low seven bits
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) {
b4[b4Posn++] = sbiCrop;
if (b4Posn > 3) {

View File

@ -543,13 +543,11 @@ public final class ClientSessionImpl implements ClientSessionInternal, FailureLi
}
@Override
public void rollback(final boolean isLastMessageAsDelivered) throws ActiveMQException
{
public void rollback(final boolean isLastMessageAsDelivered) throws ActiveMQException {
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()) {
logger.trace("calling rollback(isLastMessageAsDelivered=" + isLastMessageAsDelivered + ")");
}

View File

@ -1094,8 +1094,7 @@ public class LargeMessageControllerImpl implements LargeMessageController {
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;
streamEnded = true;
throw new IndexOutOfBoundsException();

View File

@ -31,8 +31,7 @@ import org.junit.Test;
public class AcceptorsTest extends ActiveMQTestBase {
@Test
public void testMultipleAcceptorsWithSameHostPortDifferentName() throws Exception
{
public void testMultipleAcceptorsWithSameHostPortDifferentName() throws Exception {
final String acceptorFactoryClass = FakeAcceptorFactory.class.getName();
Map<String, Object> params = new HashMap<>();