You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by ki...@apache.org on 2022/02/11 05:40:52 UTC

[incubator-seatunnel] branch dev updated: [SEATUNNEL#1219] [common] fix raw use of generic type (#1220)

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

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


The following commit(s) were added to refs/heads/dev by this push:
     new 3ef889f  [SEATUNNEL#1219] [common] fix raw use of generic type (#1220)
3ef889f is described below

commit 3ef889f7c2ef3c8f0ad6a65087eaa0d9982601b0
Author: CenterCode <yx...@users.noreply.github.com>
AuthorDate: Fri Feb 11 13:40:46 2022 +0800

    [SEATUNNEL#1219] [common] fix raw use of generic type (#1220)
---
 .../main/java/org/apache/seatunnel/common/config/CheckConfigUtil.java   | 2 +-
 .../src/main/java/org/apache/seatunnel/common/utils/StringTemplate.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/seatunnel-common/src/main/java/org/apache/seatunnel/common/config/CheckConfigUtil.java b/seatunnel-common/src/main/java/org/apache/seatunnel/common/config/CheckConfigUtil.java
index 9241ec8..4432276 100644
--- a/seatunnel-common/src/main/java/org/apache/seatunnel/common/config/CheckConfigUtil.java
+++ b/seatunnel-common/src/main/java/org/apache/seatunnel/common/config/CheckConfigUtil.java
@@ -56,7 +56,7 @@ public class CheckConfigUtil {
             return CheckResult.success();
         }
 
-        List<String> missingParams = new LinkedList();
+        List<String> missingParams = new LinkedList<>();
         for (String param : params) {
             if (!config.hasPath(param) || config.getAnyRef(param) == null) {
                 missingParams.add(param);
diff --git a/seatunnel-common/src/main/java/org/apache/seatunnel/common/utils/StringTemplate.java b/seatunnel-common/src/main/java/org/apache/seatunnel/common/utils/StringTemplate.java
index f955b2d..a030d82 100644
--- a/seatunnel-common/src/main/java/org/apache/seatunnel/common/utils/StringTemplate.java
+++ b/seatunnel-common/src/main/java/org/apache/seatunnel/common/utils/StringTemplate.java
@@ -37,7 +37,7 @@ public class StringTemplate {
         final SimpleDateFormat sdf = new SimpleDateFormat(timeFormat);
         final String formattedDate = sdf.format(new Date());
 
-        final Map<String, String> valuesMap = new HashMap(3);
+        final Map<String, String> valuesMap = new HashMap<>(3);
         valuesMap.put("uuid", UUID.randomUUID().toString());
         valuesMap.put("now", formattedDate);
         valuesMap.put(timeFormat, formattedDate);