From ec76763404bd829b06dc687d6e7bcbbfd4b0d939 Mon Sep 17 00:00:00 2001 From: spencergibb Date: Thu, 12 Jan 2023 13:26:40 -0500 Subject: [PATCH] =?UTF-8?q?formatting=CB=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cloud/gateway/filter/WeightCalculatorWebFilter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;