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:38:57 UTC

[camel] 01/13: (chores) camel-as2: 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 ddf70d57394eabee1bcf1ce8736e776e01495793
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Jun 30 10:36:53 2023 +0200

    (chores) camel-as2: reduce verbosity of generics code
---
 .../apache/camel/component/as2/api/entity/EntityParser.java  | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/components/camel-as2/camel-as2-api/src/main/java/org/apache/camel/component/as2/api/entity/EntityParser.java b/components/camel-as2/camel-as2-api/src/main/java/org/apache/camel/component/as2/api/entity/EntityParser.java
index cba6b1d7ab2..76fef7bed16 100644
--- a/components/camel-as2/camel-as2-api/src/main/java/org/apache/camel/component/as2/api/entity/EntityParser.java
+++ b/components/camel-as2/camel-as2-api/src/main/java/org/apache/camel/component/as2/api/entity/EntityParser.java
@@ -202,7 +202,7 @@ public final class EntityParser {
 
             // Read Text Report Body Part Headers
             Header[] headers = AbstractMessageParser.parseHeaders(inbuffer, -1, -1, BasicLineParser.INSTANCE,
-                    new ArrayList<CharArrayBuffer>());
+                    new ArrayList<>());
 
             // Get Content-Type and Content-Transfer-Encoding
             ContentType entityContentType = null;
@@ -529,7 +529,7 @@ public final class EntityParser {
 
             // Read Text Report Body Part Headers
             Header[] headers = AbstractMessageParser.parseHeaders(inbuffer, -1, -1, BasicLineParser.INSTANCE,
-                    new ArrayList<CharArrayBuffer>());
+                    new ArrayList<>());
 
             // Get Content-Type and Content-Transfer-Encoding
             ContentType signedEntityContentType = null;
@@ -560,7 +560,7 @@ public final class EntityParser {
 
             // Read Signature Body Part Headers
             headers = AbstractMessageParser.parseHeaders(inbuffer, -1, -1, BasicLineParser.INSTANCE,
-                    new ArrayList<CharArrayBuffer>());
+                    new ArrayList<>());
 
             // Get Content-Type and Content-Transfer-Encoding
             ContentType signatureContentType = null;
@@ -637,7 +637,7 @@ public final class EntityParser {
 
             // Read Text Report Body Part Headers
             Header[] headers = AbstractMessageParser.parseHeaders(inbuffer, -1, -1, BasicLineParser.INSTANCE,
-                    new ArrayList<CharArrayBuffer>());
+                    new ArrayList<>());
 
             // Get Content-Type and Content-Transfer-Encoding
             ContentType textReportContentType = null;
@@ -674,7 +674,7 @@ public final class EntityParser {
 
             // Read Disposition Notification Body Part Headers
             headers = AbstractMessageParser.parseHeaders(inbuffer, -1, -1, BasicLineParser.INSTANCE,
-                    new ArrayList<CharArrayBuffer>());
+                    new ArrayList<>());
 
             // Get Content-Type and Content-Transfer-Encoding
             ContentType dispositionNotificationContentType = null;
@@ -766,7 +766,7 @@ public final class EntityParser {
             inbuffer.setCharsetDecoder(charsetDecoder);
 
             List<CharArrayBuffer> dispositionNotificationFields = parseBodyPartFields(inbuffer, boundary,
-                    BasicLineParser.INSTANCE, new ArrayList<CharArrayBuffer>());
+                    BasicLineParser.INSTANCE, new ArrayList<>());
 
             AS2MessageDispositionNotificationEntity as2MessageDispositionNotificationEntity
                     = DispositionNotificationContentUtils.parseDispositionNotification(dispositionNotificationFields);