You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2023/06/30 10:39:01 UTC

[camel] 05/13: (chores) camel-kudu: reduce verbosity of generics code

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

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 06b5fcf62e45a7e0f81c8f0c4af123afd8a5c008
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Jun 30 11:09:54 2023 +0200

    (chores) camel-kudu: reduce verbosity of generics code
---
 .../src/main/java/org/apache/camel/component/kudu/KuduUtils.java      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-kudu/src/main/java/org/apache/camel/component/kudu/KuduUtils.java b/components/camel-kudu/src/main/java/org/apache/camel/component/kudu/KuduUtils.java
index be3148c3268..9a9feef4826 100644
--- a/components/camel-kudu/src/main/java/org/apache/camel/component/kudu/KuduUtils.java
+++ b/components/camel-kudu/src/main/java/org/apache/camel/component/kudu/KuduUtils.java
@@ -46,10 +46,10 @@ public final class KuduUtils {
      */
     public static List<Map<String, Object>> scannerToList(KuduScanner scanner) {
         KuduScannerIterator it = scanner.iterator();
-        List<Map<String, Object>> res = new ArrayList<Map<String, Object>>();
+        List<Map<String, Object>> res = new ArrayList<>();
         while (it.hasNext()) {
             RowResult row = it.next();
-            Map<String, Object> r = new HashMap<String, Object>();
+            Map<String, Object> r = new HashMap<>();
             res.add(r);
             for (ColumnSchema columnSchema : scanner.getProjectionSchema().getColumns()) {
                 final String name = columnSchema.getName();