From f25bbad4569e394f39f54ed7bbeaedaadb8a41b7 Mon Sep 17 00:00:00 2001 From: buildmaster Date: Wed, 18 Dec 2019 16:05:04 +0000 Subject: [PATCH] Bumping versions --- .../core/ZonePreferenceServiceInstanceListSupplier.java | 5 +++-- .../core/ZonePreferenceServiceInstanceListSupplierTests.java | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/core/ZonePreferenceServiceInstanceListSupplier.java b/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/core/ZonePreferenceServiceInstanceListSupplier.java index 0ceee038..a05ba3f7 100644 --- a/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/core/ZonePreferenceServiceInstanceListSupplier.java +++ b/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/core/ZonePreferenceServiceInstanceListSupplier.java @@ -28,8 +28,9 @@ import org.springframework.core.env.Environment; /** * An implementation of {@link ServiceInstanceListSupplier} that filters instances * retrieved by the delegate by zone. The zone is retrieved from the - * spring.cloud.loadbalancer.zone property. If the zone is not set or no instances are found for the - * requested zone, all instances retrieved by the delegate are returned. + * spring.cloud.loadbalancer.zone property. If the zone is not set or no + * instances are found for the requested zone, all instances retrieved by the delegate are + * returned. * * @author Olga Maciaszek-Sharma * @since 2.2.1 diff --git a/spring-cloud-loadbalancer/src/test/java/org/springframework/cloud/loadbalancer/core/ZonePreferenceServiceInstanceListSupplierTests.java b/spring-cloud-loadbalancer/src/test/java/org/springframework/cloud/loadbalancer/core/ZonePreferenceServiceInstanceListSupplierTests.java index 95ebaebe..9c3d6ef2 100644 --- a/spring-cloud-loadbalancer/src/test/java/org/springframework/cloud/loadbalancer/core/ZonePreferenceServiceInstanceListSupplierTests.java +++ b/spring-cloud-loadbalancer/src/test/java/org/springframework/cloud/loadbalancer/core/ZonePreferenceServiceInstanceListSupplierTests.java @@ -65,7 +65,8 @@ class ZonePreferenceServiceInstanceListSupplierTests { void shouldFilterInstancesByZone() { when(environment.getProperty("spring.cloud.loadbalancer.zone")) .thenReturn("zone1"); - when(delegate.get()).thenReturn(Flux.just(Arrays.asList(first, second, third, fourth, fifth))); + when(delegate.get()).thenReturn( + Flux.just(Arrays.asList(first, second, third, fourth, fifth))); List filtered = supplier.get().blockFirst();