Browse Source

Remove spring-boot-starter-validation from LoadBalancer dependencies. Fixes gh-992.

pull/996/head
Olga MaciaszekSharma 3 years ago
parent
commit
6929b5058a
  1. 4
      spring-cloud-loadbalancer/pom.xml
  2. 3
      spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/cache/DefaultLoadBalancerCache.java

4
spring-cloud-loadbalancer/pom.xml

@ -22,10 +22,6 @@ @@ -22,10 +22,6 @@
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-context</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>

3
spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/cache/DefaultLoadBalancerCache.java vendored

@ -19,8 +19,6 @@ package org.springframework.cloud.loadbalancer.cache; @@ -19,8 +19,6 @@ package org.springframework.cloud.loadbalancer.cache;
import java.util.concurrent.Callable;
import java.util.concurrent.ConcurrentMap;
import javax.validation.constraints.Null;
import com.stoyanr.evictor.ConcurrentMapWithTimedEviction;
import com.stoyanr.evictor.map.ConcurrentHashMapWithTimedEviction;
import com.stoyanr.evictor.scheduler.DelayedTaskEvictionScheduler;
@ -93,7 +91,6 @@ public class DefaultLoadBalancerCache extends AbstractValueAdaptingCache { @@ -93,7 +91,6 @@ public class DefaultLoadBalancerCache extends AbstractValueAdaptingCache {
}
@Override
@Null
protected Object lookup(Object key) {
return cache.get(key);
}

Loading…
Cancel
Save