Author: richard.opalka(a)jboss.com
Date: 2008-04-18 05:01:38 -0400 (Fri, 18 Apr 2008)
New Revision: 6486
Modified:
stack/native/trunk/src/main/java/org/jboss/ws/core/soap/SOAPMessageImpl.java
Log:
[JBWS-2156] use getBoolean instead of valueOf to read system property
Modified: stack/native/trunk/src/main/java/org/jboss/ws/core/soap/SOAPMessageImpl.java
===================================================================
---
stack/native/trunk/src/main/java/org/jboss/ws/core/soap/SOAPMessageImpl.java 2008-04-18
08:35:33 UTC (rev 6485)
+++
stack/native/trunk/src/main/java/org/jboss/ws/core/soap/SOAPMessageImpl.java 2008-04-18
09:01:38 UTC (rev 6486)
@@ -73,6 +73,7 @@
private boolean isSWARefMessage;
private SOAPPartImpl soapPart;
private MultipartRelatedEncoder multipartRelatedEncoder;
+ private static final boolean writeXMLDeclaration =
Boolean.getBoolean(WRITE_XML_DECLARATION);
// Cache the associated operation meta data
private OperationMetaData opMetaData;
@@ -81,7 +82,7 @@
{
soapPart = new SOAPPartImpl(this);
setProperty(CHARACTER_SET_ENCODING, "UTF-8");
- setProperty(WRITE_XML_DECLARATION, Boolean.valueOf(WRITE_XML_DECLARATION));
+ setProperty(WRITE_XML_DECLARATION, writeXMLDeclaration);
}
public CIDGenerator getCidGenerator()
Show replies by date