You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by li...@apache.org on 2022/06/24 07:27:57 UTC

[servicecomb-java-chassis] branch master updated: [SCB-2601] fix kie fileSource not support comma separated (#3122)

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

liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-java-chassis.git


The following commit(s) were added to refs/heads/master by this push:
     new 0024c7257 [SCB-2601] fix kie fileSource not support comma separated (#3122)
0024c7257 is described below

commit 0024c7257b5e1850660320c13b3ee2cc07a10110
Author: david6969xin <86...@users.noreply.github.com>
AuthorDate: Fri Jun 24 15:27:52 2022 +0800

    [SCB-2601] fix kie fileSource not support comma separated (#3122)
---
 .../src/main/java/org/apache/servicecomb/config/kie/KieConfig.java   | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/dynamic-config/config-kie/src/main/java/org/apache/servicecomb/config/kie/KieConfig.java b/dynamic-config/config-kie/src/main/java/org/apache/servicecomb/config/kie/KieConfig.java
index 7f93e1d1c..6409ff39d 100644
--- a/dynamic-config/config-kie/src/main/java/org/apache/servicecomb/config/kie/KieConfig.java
+++ b/dynamic-config/config-kie/src/main/java/org/apache/servicecomb/config/kie/KieConfig.java
@@ -18,6 +18,7 @@
 package org.apache.servicecomb.config.kie;
 
 import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.Collections;
 import java.util.List;
 
@@ -87,9 +88,7 @@ public class KieConfig {
   public List<String> getFileSources() {
     Object property = finalConfig.getProperty(FILE_SOURCE);
     if (property instanceof String) {
-      List<String> result = new ArrayList<>();
-      result.add((String) property);
-      return result;
+      return new ArrayList<>(Arrays.asList(((String) property).split(",")));
     }
     if (property instanceof List) {
       return (List<String>) property;