checkstyle WhiteAround
WhiteAroundCheck script
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
@@ -143,7 +143,7 @@ public class ForkUtil {
|
||||
// ignore and move on
|
||||
}
|
||||
}
|
||||
if (controlFileExists(className)){
|
||||
if (controlFileExists(className)) {
|
||||
System.out.println("Started cache server");
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user