servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r499005 - /incubator/servicemix/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/jaxp/W3CDOMStreamReader.java
Date Tue, 23 Jan 2007 12:28:11 GMT
Author: gnodet
Date: Tue Jan 23 04:28:10 2007
New Revision: 499005

URL: http://svn.apache.org/viewvc?view=rev&rev=499005
Log:
Fix possible NPE when using jaxb2 on top of W3CDOMStreamReader

Modified:
    incubator/servicemix/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/jaxp/W3CDOMStreamReader.java

Modified: incubator/servicemix/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/jaxp/W3CDOMStreamReader.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/jaxp/W3CDOMStreamReader.java?view=diff&rev=499005&r1=499004&r2=499005
==============================================================================
--- incubator/servicemix/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/jaxp/W3CDOMStreamReader.java
(original)
+++ incubator/servicemix/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/jaxp/W3CDOMStreamReader.java
Tue Jan 23 04:28:10 2007
@@ -217,14 +217,7 @@
     }
 
     public String getAttributeType(int i) {
-        return toStaxType(getAttribute(i).getNodeType());
-    }
-
-    public static String toStaxType(short jdom) {
-        switch (jdom) {
-        default:
-            return null;
-        }
+        return "CDATA";
     }
 
     public String getAttributeValue(int i) {



Mime
View raw message