Author: veithen
Date: Wed Apr 28 18:23:27 2010
New Revision: 939039
URL: http://svn.apache.org/viewvc?rev=939039&view=rev
Log:
Fixed some compiler warnings.
Modified:
axis/axis2/java/transports/trunk/modules/base/src/main/java/org/apache/axis2/format/BinaryFormatter.java
axis/axis2/java/transports/trunk/modules/base/src/main/java/org/apache/axis2/format/WrappedTextNodeStreamReader.java
Modified:
axis/axis2/java/transports/trunk/modules/base/src/main/java/org/apache/axis2/format/BinaryFormatter.java
URL:
http://svn.apache.org/viewvc/axis/axis2/java/transports/trunk/modules/base/src/main/java/org/apache/axis2/format/BinaryFormatter.java?rev=939039&r1=939038&r2=939039&view=diff
==============================================================================
---
axis/axis2/java/transports/trunk/modules/base/src/main/java/org/apache/axis2/format/BinaryFormatter.java
(original)
+++
axis/axis2/java/transports/trunk/modules/base/src/main/java/org/apache/axis2/format/BinaryFormatter.java
Wed Apr 28 18:23:27 2010
@@ -61,7 +61,7 @@ public class BinaryFormatter implements
DataHandler dh = getDataHandler(messageContext);
if (dh != null) {
try {
- ((DataHandler)dh).writeTo(outputStream);
+ dh.writeTo(outputStream);
} catch (IOException e) {
throw new AxisFault("Error serializing binary content of
element : " +
BaseConstants.DEFAULT_BINARY_WRAPPER, e);
Modified:
axis/axis2/java/transports/trunk/modules/base/src/main/java/org/apache/axis2/format/WrappedTextNodeStreamReader.java
URL:
http://svn.apache.org/viewvc/axis/axis2/java/transports/trunk/modules/base/src/main/java/org/apache/axis2/format/WrappedTextNodeStreamReader.java?rev=939039&r1=939038&r2=939039&view=diff
==============================================================================
---
axis/axis2/java/transports/trunk/modules/base/src/main/java/org/apache/axis2/format/WrappedTextNodeStreamReader.java
(original)
+++
axis/axis2/java/transports/trunk/modules/base/src/main/java/org/apache/axis2/format/WrappedTextNodeStreamReader.java
Wed Apr 28 18:23:27 2010
@@ -30,7 +30,7 @@ import javax.xml.stream.Location;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamReader;
-import org.apache.axiom.om.impl.llom.util.NamespaceContextImpl;
+import org.apache.axiom.util.namespace.MapBasedNamespaceContext;
import org.apache.axiom.util.stax.DummyLocation;
import org.apache.commons.io.IOUtils;
@@ -251,7 +251,7 @@ public class WrappedTextNodeStreamReader
public NamespaceContext getNamespaceContext() {
if (namespaceContext == null) {
- namespaceContext = new
NamespaceContextImpl(Collections.singletonMap(wrapperElementName.getPrefix(),
wrapperElementName.getNamespaceURI()));
+ namespaceContext = new
MapBasedNamespaceContext(Collections.singletonMap(wrapperElementName.getPrefix(),
wrapperElementName.getNamespaceURI()));
}
return namespaceContext;
}