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:57:29 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes e6d575029 -> 8b749956b


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/8b749956
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/8b749956
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/8b749956

Branch: refs/heads/3.1.x-fixes
Commit: 8b749956b70f8e22146b089afed3df269fad10c3
Parents: e6d5750
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:57:15 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/8b749956/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 b0708d4..cb2038c 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