This is an automated email from the ASF dual-hosted git repository.
midnight2104 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-shenyu.git
The following commit(s) were added to refs/heads/master by this push:
new 1e204fb Remove the yellow alert (#2352)
1e204fb is described below
commit 1e204fbf2e92d55fc55dd218251cf27464a86dbf
Author: 萧 <[email protected]>
AuthorDate: Mon Nov 15 10:59:22 2021 +0800
Remove the yellow alert (#2352)
---
.../shenyu/client/springcloud/init/ContextRegisterListener.java | 6 +++---
.../client/springcloud/init/SpringCloudClientBeanPostProcessor.java | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git
a/shenyu-client/shenyu-client-http/shenyu-client-springcloud/src/main/java/org/apache/shenyu/client/springcloud/init/ContextRegisterListener.java
b/shenyu-client/shenyu-client-http/shenyu-client-springcloud/src/main/java/org/apache/shenyu/client/springcloud/init/ContextRegisterListener.java
index ac3462e..a62cbe1 100644
---
a/shenyu-client/shenyu-client-http/shenyu-client-springcloud/src/main/java/org/apache/shenyu/client/springcloud/init/ContextRegisterListener.java
+++
b/shenyu-client/shenyu-client-http/shenyu-client-springcloud/src/main/java/org/apache/shenyu/client/springcloud/init/ContextRegisterListener.java
@@ -43,7 +43,7 @@ public class ContextRegisterListener implements
ApplicationListener<ContextRefre
private static final Logger LOG =
LoggerFactory.getLogger(ContextRegisterListener.class);
- private ShenyuClientRegisterEventPublisher publisher =
ShenyuClientRegisterEventPublisher.getInstance();
+ private final ShenyuClientRegisterEventPublisher publisher =
ShenyuClientRegisterEventPublisher.getInstance();
private final AtomicBoolean registered = new AtomicBoolean(false);
@@ -53,9 +53,9 @@ public class ContextRegisterListener implements
ApplicationListener<ContextRefre
private String contextPath;
- private String appName;
+ private final String appName;
- private Integer port;
+ private final Integer port;
/**
* Instantiates a new Context register listener.
diff --git
a/shenyu-client/shenyu-client-http/shenyu-client-springcloud/src/main/java/org/apache/shenyu/client/springcloud/init/SpringCloudClientBeanPostProcessor.java
b/shenyu-client/shenyu-client-http/shenyu-client-springcloud/src/main/java/org/apache/shenyu/client/springcloud/init/SpringCloudClientBeanPostProcessor.java
index fb8a7ec..0033bfd 100644
---
a/shenyu-client/shenyu-client-http/shenyu-client-springcloud/src/main/java/org/apache/shenyu/client/springcloud/init/SpringCloudClientBeanPostProcessor.java
+++
b/shenyu-client/shenyu-client-http/shenyu-client-springcloud/src/main/java/org/apache/shenyu/client/springcloud/init/SpringCloudClientBeanPostProcessor.java
@@ -49,7 +49,7 @@ public class SpringCloudClientBeanPostProcessor implements
BeanPostProcessor {
private static final Logger LOG =
LoggerFactory.getLogger(SpringCloudClientBeanPostProcessor.class);
- private ShenyuClientRegisterEventPublisher publisher =
ShenyuClientRegisterEventPublisher.getInstance();
+ private final ShenyuClientRegisterEventPublisher publisher =
ShenyuClientRegisterEventPublisher.getInstance();
private final String contextPath;