cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r712198 - in /cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils: StaxUtils.java W3CDOMStreamReader.java
Date Fri, 07 Nov 2008 17:02:02 GMT
Author: dkulp
Date: Fri Nov  7 09:01:59 2008
New Revision: 712198

URL: http://svn.apache.org/viewvc?rev=712198&view=rev
Log:
Fix checkstyle errors.  

Modified:
    cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
    cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/W3CDOMStreamReader.java

Modified: cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java?rev=712198&r1=712197&r2=712198&view=diff
==============================================================================
--- cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java (original)
+++ cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java Fri Nov
 7 09:01:59 2008
@@ -606,6 +606,8 @@
         case Node.DOCUMENT_NODE:
             writeDocument((Document)n, writer, repairing);
             break;
+        default:
+            throw new IllegalStateException("Found type: " + n.getClass().getName());
         }        
     }
 

Modified: cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/W3CDOMStreamReader.java
URL: http://svn.apache.org/viewvc/cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/W3CDOMStreamReader.java?rev=712198&r1=712197&r2=712198&view=diff
==============================================================================
--- cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/W3CDOMStreamReader.java
(original)
+++ cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/W3CDOMStreamReader.java
Fri Nov  7 09:01:59 2008
@@ -25,11 +25,9 @@
 import javax.xml.stream.XMLStreamException;
 
 import org.w3c.dom.Attr;
-import org.w3c.dom.CDATASection;
-import org.w3c.dom.Comment;
+
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
-import org.w3c.dom.EntityReference;
 import org.w3c.dom.NamedNodeMap;
 import org.w3c.dom.Node;
 import org.w3c.dom.Text;
@@ -162,9 +160,9 @@
             return CDATA;
         case Node.ENTITY_REFERENCE_NODE:
             return ENTITY_REFERENCE;
+        default:
+            throw new IllegalStateException("Found type: " + content.getClass().getName());
         }
-
-        throw new IllegalStateException("Found type: " + content.getClass().getName());
     }
 
     @Override



Mime
View raw message