From f21900d0c8e45e3a3d94bc6381a56e470f54f225 Mon Sep 17 00:00:00 2001 From: John Blum Date: Tue, 4 Feb 2020 15:52:19 -0800 Subject: [PATCH] Cleanup compiler warnings. Apply wildcard generic type signature to PropertySource object reference in order to avoid the rawtype usage warning. Annotate ClusterAwareCondition.match(..) and ClusterAwareCondition.getConfiguredConnectionEndpoints(..) with @SuppressWarnings. --- .../geode/config/annotation/ClusterAwareConfiguration.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spring-geode/src/main/java/org/springframework/geode/config/annotation/ClusterAwareConfiguration.java b/spring-geode/src/main/java/org/springframework/geode/config/annotation/ClusterAwareConfiguration.java index 97f080ea..d2386e0f 100644 --- a/spring-geode/src/main/java/org/springframework/geode/config/annotation/ClusterAwareConfiguration.java +++ b/spring-geode/src/main/java/org/springframework/geode/config/annotation/ClusterAwareConfiguration.java @@ -122,6 +122,7 @@ public class ClusterAwareConfiguration extends AbstractAnnotationConfigSupport { } @Override + @SuppressWarnings("all") public synchronized boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) { if (clusterAvailable.get() == null) { @@ -182,6 +183,7 @@ public class ClusterAwareConfiguration extends AbstractAnnotationConfigSupport { ); } + @SuppressWarnings("all") List getConfiguredConnectionEndpoints(Environment environment) { List connectionEndpoints = new ArrayList<>(); @@ -196,7 +198,7 @@ public class ClusterAwareConfiguration extends AbstractAnnotationConfigSupport { Pattern pattern = Pattern.compile(MATCHING_PROPERTY_PATTERN); - for (PropertySource propertySource : propertySources) { + for (PropertySource propertySource : propertySources) { if (propertySource instanceof EnumerablePropertySource) { EnumerablePropertySource enumerablePropertySource =