Skip to content

Commit 4457345

Browse files
committed
Fix generics for RegionAttrFactoryBean in gemfire
1 parent baf2b8d commit 4457345

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spring-integration-gemfire/src/test/java/org/springframework/integration/gemfire/inbound/CacheListeningMessageProducerTests.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,10 @@ public void receiveOldValuePayloadForInvalidateEvent() {
156156
producer.stop();
157157
}
158158

159-
@SuppressWarnings("unchecked")
160159
private static void setRegionAttributes(GenericRegionFactoryBean<String, String> regionFactoryBean)
161160
throws Exception {
162161

163-
RegionAttributesFactoryBean attributesFactoryBean = new RegionAttributesFactoryBean();
162+
RegionAttributesFactoryBean<String, String> attributesFactoryBean = new RegionAttributesFactoryBean<>();
164163
attributesFactoryBean.afterPropertiesSet();
165164
regionFactoryBean.setAttributes(attributesFactoryBean.getObject());
166165
}

0 commit comments

Comments
 (0)