diff --git a/spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/filter/WeightCalculatorWebFilter.java b/spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/filter/WeightCalculatorWebFilter.java index f4aeec98..4333043a 100644 --- a/spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/filter/WeightCalculatorWebFilter.java +++ b/spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/filter/WeightCalculatorWebFilter.java @@ -233,8 +233,8 @@ public class WeightCalculatorWebFilter implements WebFilter, Ordered, SmartAppli } /* - * Usually, multiple threads accessing the same random object will have some performance problems, - * so we can use ThreadLocalRandom by default + * Usually, multiple threads accessing the same random object will have some + * performance problems, so we can use ThreadLocalRandom by default */ Random useRandom = this.random; useRandom = useRandom == null ? ThreadLocalRandom.current() : useRandom;