jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r208676 - /incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/util/DOMWalker.java
Date Thu, 30 Jun 2005 20:17:55 GMT
Author: jukka
Date: Thu Jun 30 13:17:54 2005
New Revision: 208676

URL: http://svn.apache.org/viewcvs?rev=208676&view=rev
Log:
DOMWalker: Removed unused code and imports. Added a Javadoc warning.

Modified:
    incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/util/DOMWalker.java

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/util/DOMWalker.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/util/DOMWalker.java?rev=208676&r1=208675&r2=208676&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/util/DOMWalker.java (original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/util/DOMWalker.java Thu
Jun 30 13:17:54 2005
@@ -22,12 +22,6 @@
 
 import javax.xml.parsers.DocumentBuilder;
 import javax.xml.parsers.DocumentBuilderFactory;
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.transform.Transformer;
-import javax.xml.transform.TransformerException;
-import javax.xml.transform.TransformerFactory;
-import javax.xml.transform.dom.DOMResult;
-import javax.xml.transform.stream.StreamSource;
 
 import org.w3c.dom.Attr;
 import org.w3c.dom.CharacterData;
@@ -36,7 +30,6 @@
 import org.w3c.dom.NamedNodeMap;
 import org.w3c.dom.Node;
 import org.w3c.dom.NodeList;
-import org.xml.sax.SAXException;
 
 /**
  * Document walker class. This class provides an intuitive
@@ -45,8 +38,6 @@
 public final class DOMWalker {
 
     /** Static factory for creating stream to DOM transformers. */
-//    private static final TransformerFactory factory =
-//        TransformerFactory.newInstance();
     private static final DocumentBuilderFactory factory =
         DocumentBuilderFactory.newInstance();
 
@@ -192,6 +183,11 @@
      *         ...;
      *     }
      * </pre>
+     * <p>
+     * <strong>WARNING:</strong> This method should only be used when
+     * <code>walker.getName()</code> does not equal <code>name</code>
when
+     * the while loop is started. Otherwise the walker will not be positioned
+     * at the same node when the while loop ends.
      *
      * @param name name of the iterated elements
      * @return <code>true</code> if another iterated element was entered, or



Mime
View raw message