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.
This commit is contained in:
John Blum
2020-02-04 15:52:19 -08:00
parent 0804ca0e32
commit f21900d0c8

View File

@@ -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<ConnectionEndpoint> getConfiguredConnectionEndpoints(Environment environment) {
List<ConnectionEndpoint> 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 =