cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r1411519 - /cxf/trunk/api/src/main/java/org/apache/cxf/attachment/AttachmentSerializer.java
Date Tue, 20 Nov 2012 02:59:06 GMT
Author: ffang
Date: Tue Nov 20 02:59:05 2012
New Revision: 1411519

URL: http://svn.apache.org/viewvc?rev=1411519&view=rev
Log:
[CXF-4482]use org.apache.cxf.common.util.SystemPropertyAction instead of sun.security.action.GetPropertyAction

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

Modified: cxf/trunk/api/src/main/java/org/apache/cxf/attachment/AttachmentSerializer.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/attachment/AttachmentSerializer.java?rev=1411519&r1=1411518&r2=1411519&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/attachment/AttachmentSerializer.java (original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/attachment/AttachmentSerializer.java Tue Nov
20 02:59:05 2012
@@ -32,6 +32,7 @@ import java.util.Map;
 
 import javax.activation.DataHandler;
 
+import org.apache.cxf.common.util.SystemPropertyAction;
 import org.apache.cxf.message.Attachment;
 import org.apache.cxf.message.Message;
 
@@ -153,8 +154,8 @@ public class AttachmentSerializer {
             encoding = "UTF-8";
         }
         StringWriter writer = new StringWriter();
-        String lineSeparator = java.security.AccessController.doPrivileged(
-            new sun.security.action.GetPropertyAction("line.separator"));
+        String lineSeparator = 
+            SystemPropertyAction.getProperty("line.separator", "\r\n");
         writer.write(lineSeparator);
         writer.write("--");
         writer.write(bodyBoundary);



Mime
View raw message