This is an automated email from the ASF dual-hosted git repository.

benjobs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampark.git


The following commit(s) were added to refs/heads/dev by this push:
     new 2b2b392bd use https://rules.sonarsource.com/java/RSPEC-2696/ Update 
SpringContextUtils.java (#3259)
2b2b392bd is described below

commit 2b2b392bd94f323b6700272db480c27ff85c61ea
Author: VampireAchao <[email protected]>
AuthorDate: Sun Oct 22 22:34:27 2023 +0800

    use https://rules.sonarsource.com/java/RSPEC-2696/ Update 
SpringContextUtils.java (#3259)
    
    see https://rules.sonarsource.com/java/RSPEC-2696/
---
 .../org/apache/streampark/console/base/util/SpringContextUtils.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/base/util/SpringContextUtils.java
 
b/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/base/util/SpringContextUtils.java
index 4c05bc778..799555d8d 100644
--- 
a/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/base/util/SpringContextUtils.java
+++ 
b/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/base/util/SpringContextUtils.java
@@ -28,7 +28,7 @@ public class SpringContextUtils implements 
ApplicationContextAware {
   private static ApplicationContext applicationContext;
 
   @Override
-  public void setApplicationContext(ApplicationContext applicationContext) 
throws BeansException {
+  public synchronized void setApplicationContext(ApplicationContext 
applicationContext) throws BeansException {
     SpringContextUtils.applicationContext = applicationContext;
   }
 

Reply via email to