cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Minor update to the attachment utils
Date Fri, 12 May 2017 10:54:33 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 54aedd70f -> de11ac7d5


Minor update to the attachment utils


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/de11ac7d
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/de11ac7d
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/de11ac7d

Branch: refs/heads/master
Commit: de11ac7d568ec69dccd103dd3222a0341a3a235d
Parents: 54aedd7
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Fri May 12 11:54:18 2017 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Fri May 12 11:54:18 2017 +0100

----------------------------------------------------------------------
 .../org/apache/cxf/jaxrs/utils/multipart/AttachmentUtils.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/de11ac7d/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/multipart/AttachmentUtils.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/multipart/AttachmentUtils.java
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/multipart/AttachmentUtils.java
index e2f9f6b..68793fe 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/multipart/AttachmentUtils.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/multipart/AttachmentUtils.java
@@ -63,9 +63,9 @@ public final class AttachmentUtils {
         List<MultipartOutputFilter> outFilters = CastUtils.cast((List<?>)m.get(OUT_FILTERS));
         if (outFilters == null) {
             outFilters = new ArrayList<MultipartOutputFilter>();
+            m.put(OUT_FILTERS, outFilters);
         }
         outFilters.add(filter);
-        m.put(OUT_FILTERS, outFilters);
     }
     
     public static void addMultipartInFilter(MultipartInputFilter filter) {
@@ -73,9 +73,9 @@ public final class AttachmentUtils {
         List<MultipartInputFilter> inFilters = CastUtils.cast((List<?>)m.get(IN_FILTERS));
         if (inFilters == null) {
             inFilters = new ArrayList<MultipartInputFilter>();
+            m.put(IN_FILTERS, inFilters);
         }
         inFilters.add(filter);
-        m.put(IN_FILTERS, inFilters);
     }
 
 


Mime
View raw message