Browse Source

1. change windows new line 'CR' to linux new line 'LF'

2. solve conflict
pull/2/head
simon824 5 years ago
parent
commit
cfecfb799b
  1. 4
      dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/JSONUtils.java

4
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/JSONUtils.java

@ -119,7 +119,7 @@ public class JSONUtils {
*/ */
public static <T> List<T> toList(String json, Class<T> clazz) { public static <T> List<T> toList(String json, Class<T> clazz) {
if (StringUtils.isEmpty(json)) { if (StringUtils.isEmpty(json)) {
return new ArrayList<>(); return Collections.emptyList();
} }
try { try {
@ -130,7 +130,7 @@ public class JSONUtils {
logger.error("parse list exception!", e); logger.error("parse list exception!", e);
} }
return new ArrayList<>(); return Collections.emptyList();
} }

Loading…
Cancel
Save