checkstyle WhiteAround

WhiteAroundCheck script
This commit is contained in:
Gary Russell
2016-04-05 13:29:21 -04:00
parent 842aded9a4
commit 05cc7be644
508 changed files with 2027 additions and 1916 deletions

View File

@@ -22,7 +22,7 @@ import org.springframework.integration.config.xml.AbstractIntegrationNamespaceHa
* @author David Turanski
* @since 2.1
*/
public class GemfireIntegrationNamespaceHandler extends AbstractIntegrationNamespaceHandler{
public class GemfireIntegrationNamespaceHandler extends AbstractIntegrationNamespaceHandler {
/* (non-Javadoc)
* @see org.springframework.beans.factory.xml.NamespaceHandler#init()

View File

@@ -92,8 +92,8 @@ public class CacheListeningMessageProducer extends ExpressionMessageProducerSupp
this.region.getAttributesMutator().removeCacheListener(this.listener);
}
catch (CacheClosedException e) {
if (this.logger.isDebugEnabled()){
this.logger.debug(e.getMessage(),e);
if (this.logger.isDebugEnabled()) {
this.logger.debug(e.getMessage(), e);
}
}

View File

@@ -58,7 +58,7 @@ public class GemfireMessageStore extends AbstractKeyValueMessageStore implements
*
* @param messageStoreRegion The region.
*/
public GemfireMessageStore(Region<Object,Object> messageStoreRegion) {
public GemfireMessageStore(Region<Object, Object> messageStoreRegion) {
this.cache = null;
this.messageStoreRegion = messageStoreRegion;
}
@@ -88,14 +88,14 @@ public class GemfireMessageStore extends AbstractKeyValueMessageStore implements
}
try {
if (logger.isDebugEnabled()){
if (logger.isDebugEnabled()) {
logger.debug("creating message store region as '" + MESSAGE_STORE_REGION_NAME + "'");
}
RegionAttributesFactoryBean attributesFactoryBean = new RegionAttributesFactoryBean();
attributesFactoryBean.setIgnoreJTA(this.ignoreJta);
attributesFactoryBean.afterPropertiesSet();
RegionFactoryBean<Object, Object> messageRegionFactoryBean = new RegionFactoryBean<Object, Object>() {};
RegionFactoryBean<Object, Object> messageRegionFactoryBean = new RegionFactoryBean<Object, Object>() { };
messageRegionFactoryBean.setBeanName(MESSAGE_STORE_REGION_NAME);
messageRegionFactoryBean.setAttributes(attributesFactoryBean.getObject());
messageRegionFactoryBean.setCache(this.cache);

View File

@@ -54,7 +54,7 @@ public class CacheServerProcess {
Cache cache = new CacheFactory(props).create();
// Create region.
Region<?,?> region = cache.createRegionFactory(RegionShortcut.REPLICATE)
Region<?, ?> region = cache.createRegionFactory(RegionShortcut.REPLICATE)
.setScope(Scope.DISTRIBUTED_ACK)
.create("test");

View File

@@ -143,7 +143,7 @@ public class ForkUtil {
// ignore and move on
}
}
if (controlFileExists(className)){
if (controlFileExists(className)) {
System.out.println("Started cache server");
}
else {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2015 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.
@@ -49,7 +49,7 @@ public class CacheListeningMessageProducerTests {
CacheFactoryBean cacheFactoryBean = new CacheFactoryBean();
Cache cache = cacheFactoryBean.getObject();
RegionFactoryBean<String, String> regionFactoryBean = new RegionFactoryBean<String, String>() {};
RegionFactoryBean<String, String> regionFactoryBean = new RegionFactoryBean<String, String>() { };
regionFactoryBean.setName("test.receiveNewValuePayloadForCreateEvent");
regionFactoryBean.setCache(cache);
this.setRegionAttributes(regionFactoryBean);
@@ -75,7 +75,7 @@ public class CacheListeningMessageProducerTests {
CacheFactoryBean cacheFactoryBean = new CacheFactoryBean();
Cache cache = cacheFactoryBean.getObject();
RegionFactoryBean<String, String> regionFactoryBean = new RegionFactoryBean<String, String>() {};
RegionFactoryBean<String, String> regionFactoryBean = new RegionFactoryBean<String, String>() { };
regionFactoryBean.setName("test.receiveNewValuePayloadForUpdateEvent");
regionFactoryBean.setCache(cache);
this.setRegionAttributes(regionFactoryBean);
@@ -105,7 +105,7 @@ public class CacheListeningMessageProducerTests {
CacheFactoryBean cacheFactoryBean = new CacheFactoryBean();
Cache cache = cacheFactoryBean.getObject();
RegionFactoryBean<String, String> regionFactoryBean = new RegionFactoryBean<String, String>() {};
RegionFactoryBean<String, String> regionFactoryBean = new RegionFactoryBean<String, String>() { };
regionFactoryBean.setName("test.receiveOldValuePayloadForDestroyEvent");
regionFactoryBean.setCache(cache);
this.setRegionAttributes(regionFactoryBean);
@@ -134,7 +134,7 @@ public class CacheListeningMessageProducerTests {
CacheFactoryBean cacheFactoryBean = new CacheFactoryBean();
Cache cache = cacheFactoryBean.getObject();
RegionFactoryBean<String, String> regionFactoryBean = new RegionFactoryBean<String, String>() {};
RegionFactoryBean<String, String> regionFactoryBean = new RegionFactoryBean<String, String>() { };
regionFactoryBean.setName("test.receiveOldValuePayloadForDestroyEvent");
regionFactoryBean.setCache(cache);
this.setRegionAttributes(regionFactoryBean);

View File

@@ -77,7 +77,7 @@ public class CqInboundChannelAdapterTests {
@Test
public void testCqEvent() throws InterruptedException {
assertTrue(TestUtils.getPropertyValue(withDurable, "durable", Boolean.class));
region.put("one",1);
region.put("one", 1);
Message<?> msg = outputChannel1.receive(10000);
assertNotNull(msg);
assertTrue(msg.getPayload() instanceof CqEvent);
@@ -85,10 +85,10 @@ public class CqInboundChannelAdapterTests {
@Test
public void testPayloadExpression() throws InterruptedException {
region.put("one",1);
region.put("one", 1);
Message<?> msg = outputChannel2.receive(10000);
assertNotNull(msg);
assertEquals(1,msg.getPayload());
assertEquals(1, msg.getPayload());
}
@AfterClass

View File

@@ -84,7 +84,7 @@ public class GemfireInboundChannelAdapterTests {
region2.put("payload", "payload");
assertTrue(eventHandler2.event instanceof EntryEvent);
EntryEvent<?,?> event = (EntryEvent<?,?>)eventHandler2.event;
EntryEvent<?, ?> event = (EntryEvent<?, ?>) eventHandler2.event;
assertEquals("payload", event.getNewValue());
}

View File

@@ -52,7 +52,7 @@ public class CacheWritingMessageHandlerTests {
public void mapPayloadWritesToCache() throws Exception {
CacheFactoryBean cacheFactoryBean = new CacheFactoryBean();
Cache cache = cacheFactoryBean.getObject();
RegionFactoryBean<String, String> regionFactoryBean = new RegionFactoryBean<String, String>() {};
RegionFactoryBean<String, String> regionFactoryBean = new RegionFactoryBean<String, String>() { };
regionFactoryBean.setName("test.mapPayloadWritesToCache");
regionFactoryBean.setCache(cache);
regionFactoryBean.afterPropertiesSet();
@@ -77,7 +77,7 @@ public class CacheWritingMessageHandlerTests {
public void ExpressionsWriteToCache() throws Exception {
CacheFactoryBean cacheFactoryBean = new CacheFactoryBean();
Cache cache = cacheFactoryBean.getObject();
RegionFactoryBean<String, Object> regionFactoryBean = new RegionFactoryBean<String, Object>() {};
RegionFactoryBean<String, Object> regionFactoryBean = new RegionFactoryBean<String, Object>() { };
regionFactoryBean.setName("test.expressionsWriteToCache");
regionFactoryBean.setCache(cache);
regionFactoryBean.afterPropertiesSet();

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2015 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.
@@ -68,7 +68,7 @@ public class GemfireMessageStoreTests {
@Test
public void testRegionConstructor() throws Exception {
RegionFactoryBean<Object, Object> region = new RegionFactoryBean<Object, Object>() {};
RegionFactoryBean<Object, Object> region = new RegionFactoryBean<Object, Object>() { };
region.setName("someRegion");
region.setCache(this.cache);
region.afterPropertiesSet();

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014 the original author or authors.
* Copyright 2014-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.
@@ -159,7 +159,7 @@ public class AggregatorWithGemfireLocksTests {
@Override
public boolean canRelease(MessageGroup group) {
synchronized(this) {
synchronized (this) {
this.callers.incrementAndGet();
this.maxCallers.set(Math.max(this.maxCallers.get(), this.callers.get()));
}