Author: veithen
Date: Fri Jun 5 18:09:49 2015
New Revision: 1683827
URL: http://svn.apache.org/r1683827
Log:
Fix indentation.
Modified:
axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/utility/DataSourceFormatter.java
Modified:
axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/utility/DataSourceFormatter.java
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/utility/DataSourceFormatter.java?rev=1683827&r1=1683826&r2=1683827&view=diff
==============================================================================
---
axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/utility/DataSourceFormatter.java
(original)
+++
axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/utility/DataSourceFormatter.java
Fri Jun 5 18:09:49 2015
@@ -82,24 +82,24 @@ public class DataSourceFormatter impleme
} catch (IOException ex) {
throw AxisFault.makeFault(ex);
}
- } else {
- OMElement omElement =
messageContext.getEnvelope().getBody().getFirstElement();
- if (omElement != null) {
- try {
- if (preserve) {
- omElement.serialize(outputStream, format);
- } else {
- omElement.serializeAndConsume(outputStream,
format);
- }
- } catch (XMLStreamException e) {
- throw AxisFault.makeFault(e);
- }
- }
+ } else {
+ OMElement omElement =
messageContext.getEnvelope().getBody().getFirstElement();
+ if (omElement != null) {
try {
- outputStream.flush();
- } catch (IOException e) {
+ if (preserve) {
+ omElement.serialize(outputStream, format);
+ } else {
+ omElement.serializeAndConsume(outputStream,
format);
+ }
+ } catch (XMLStreamException e) {
throw AxisFault.makeFault(e);
}
+ }
+ try {
+ outputStream.flush();
+ } catch (IOException e) {
+ throw AxisFault.makeFault(e);
+ }
}
} finally {
if (log.isDebugEnabled()) {