cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1425012 - /cxf/trunk/api/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java
Date Fri, 21 Dec 2012 16:40:35 GMT
Author: dkulp
Date: Fri Dec 21 16:40:35 2012
New Revision: 1425012

URL: http://svn.apache.org/viewvc?rev=1425012&view=rev
Log:
[CXF-4720] Match javadoc/spec on what threshold param means
Patch from Han Hong Fang applied

Modified:
    cxf/trunk/api/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java

Modified: cxf/trunk/api/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java?rev=1425012&r1=1425011&r2=1425012&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java (original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java Fri Dec 21 16:40:35
2012
@@ -362,7 +362,7 @@ public final class AttachmentUtil {
 
     public static Attachment createMtomAttachment(boolean isXop, String mimeType, String
elementNS, 
                                                  byte[] data, int offset, int length, int
threshold) {
-        if (!isXop || length < threshold) {
+        if (!isXop || length <= threshold) {
             return null;
         }        
         if (mimeType == null) {



Mime
View raw message