File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
confignode/src/main/java/org/apache/iotdb/confignode/conf
datanode/src/main/java/org/apache/iotdb/db/conf
node-commons/src/main/java/org/apache/iotdb/commons/conf Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1177,7 +1177,7 @@ public String getConfigMessage() {
11771177 for (Field configField : ConfigNodeConfig .class .getDeclaredFields ()) {
11781178 try {
11791179 String configType = configField .getGenericType ().getTypeName ();
1180- if (configType .contains ("java.lang.String[]" )) {
1180+ if (configType .contains (IoTDBConstant . STRING_ARRAY_CLASS_NAME )) {
11811181 String [] configList = (String []) configField .get (this );
11821182 configContent = Arrays .asList (configList ).toString ();
11831183 } else {
Original file line number Diff line number Diff line change @@ -3404,14 +3404,14 @@ public String getConfigMessage() {
34043404 continue ;
34053405 }
34063406 String configType = configField .getGenericType ().getTypeName ();
3407- if (configType .contains ("java.lang.String[][]" )) {
3407+ if (configType .contains (IoTDBConstant . STRING_2D_ARRAY_CLASS_NAME )) {
34083408 String [][] configList = (String [][]) configField .get (this );
34093409 StringBuilder builder = new StringBuilder ();
34103410 for (String [] strings : configList ) {
34113411 builder .append (Arrays .asList (strings )).append (";" );
34123412 }
34133413 configContent = builder .toString ();
3414- } else if (configType .contains ("java.lang.String[]" )) {
3414+ } else if (configType .contains (IoTDBConstant . STRING_ARRAY_CLASS_NAME )) {
34153415 String [] configList = (String []) configField .get (this );
34163416 configContent = Arrays .asList (configList ).toString ();
34173417 } else {
Original file line number Diff line number Diff line change @@ -368,4 +368,8 @@ public enum ClientVersion {
368368 public static final String TTL_INFINITE = "INF" ;
369369
370370 public static final String INTEGRATION_TEST_KILL_POINTS = "integrationTestKillPoints" ;
371+
372+ // Class Name
373+ public static final String STRING_2D_ARRAY_CLASS_NAME = String [][].class .getName ();
374+ public static final String STRING_ARRAY_CLASS_NAME = String [].class .getName ();
371375}
You can’t perform that action at this time.
0 commit comments