From d90dbf6f7a081843b0b8cb7a3b72e0cb661ce7ed Mon Sep 17 00:00:00 2001 From: John Blum Date: Wed, 18 Mar 2020 20:23:00 -0700 Subject: [PATCH] Use wildcard generic type signature in declaration of the 'VCAP_REQUIRED_PROPERTIES_PREDICATE' Predicate of a parameterized PropertySource type. Remove unnecessary @SuppressWarnings('all') annotation from iterator() method. --- .../org/springframework/geode/core/env/VcapPropertySource.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spring-geode/src/main/java/org/springframework/geode/core/env/VcapPropertySource.java b/spring-geode/src/main/java/org/springframework/geode/core/env/VcapPropertySource.java index b8fab7d2..03b30efa 100644 --- a/spring-geode/src/main/java/org/springframework/geode/core/env/VcapPropertySource.java +++ b/spring-geode/src/main/java/org/springframework/geode/core/env/VcapPropertySource.java @@ -93,7 +93,7 @@ public class VcapPropertySource extends PropertySource VCAP_APPLICATION_PROPERTIES_PREDICATE = propertyName -> String.valueOf(propertyName).trim().toLowerCase().startsWith(VCAP_APPLICATION_PROPERTY); - private static final Predicate VCAP_REQUIRED_PROPERTIES_PREDICATE = + private static final Predicate> VCAP_REQUIRED_PROPERTIES_PREDICATE = propertySource -> propertySource.containsProperty(VCAP_APPLICATION_NAME_PROPERTY) && propertySource.containsProperty(VCAP_APPLICATION_URIS_PROPERTY); @@ -352,7 +352,6 @@ public class VcapPropertySource extends PropertySource iterator() { return Collections.unmodifiableList(Arrays.asList(getSource().getPropertyNames())).iterator(); }