Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 85233 invoked from network); 9 Jul 2005 02:40:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Jul 2005 02:40:05 -0000 Received: (qmail 62403 invoked by uid 500); 9 Jul 2005 02:40:04 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 62383 invoked by uid 500); 9 Jul 2005 02:40:03 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 62370 invoked by uid 99); 9 Jul 2005 02:40:03 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 08 Jul 2005 19:39:52 -0700 Received: (qmail 85187 invoked by uid 65534); 9 Jul 2005 02:39:50 -0000 Message-ID: <20050709023949.85186.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r209921 - /webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/xpath/DocumentNavigator.java Date: Sat, 09 Jul 2005 02:39:49 -0000 To: axis-cvs@ws.apache.org From: dims@apache.org X-Mailer: svnmailer-1.0.2 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: dims Date: Fri Jul 8 19:39:48 2005 New Revision: 209921 URL: http://svn.apache.org/viewcvs?rev=209921&view=rev Log: minor cleanup Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/xpath/DocumentNavigator.java Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/xpath/DocumentNavigator.java URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/xpath/DocumentNavigator.java?rev=209921&r1=209920&r2=209921&view=diff ============================================================================== --- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/xpath/DocumentNavigator.java (original) +++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/om/xpath/DocumentNavigator.java Fri Jul 8 19:39:48 2005 @@ -1,23 +1,25 @@ package org.apache.axis2.om.xpath; -import org.jaxen.DefaultNavigator; -import org.jaxen.*; -import org.jaxen.util.SingleObjectIterator; -import org.jaxen.saxpath.SAXPathException; -import org.apache.axis2.om.impl.llom.OMDocument; -import org.apache.axis2.om.impl.llom.builder.StAXOMBuilder; -import org.apache.axis2.om.OMElement; import org.apache.axis2.om.OMAttribute; +import org.apache.axis2.om.OMElement; import org.apache.axis2.om.OMNamespace; import org.apache.axis2.om.OMNode; import org.apache.axis2.om.OMText; -import org.apache.axis2.om.OMFactory; +import org.apache.axis2.om.impl.llom.OMDocument; +import org.apache.axis2.om.impl.llom.builder.StAXOMBuilder; +import org.jaxen.BaseXPath; +import org.jaxen.DefaultNavigator; +import org.jaxen.FunctionCallException; +import org.jaxen.JaxenConstants; +import org.jaxen.UnsupportedAxisException; +import org.jaxen.XPath; +import org.jaxen.saxpath.SAXPathException; +import org.jaxen.util.SingleObjectIterator; -import javax.xml.stream.XMLStreamReader; import javax.xml.stream.XMLInputFactory; -import java.util.Iterator; +import javax.xml.stream.XMLStreamReader; import java.net.URL; -import java.net.MalformedURLException; +import java.util.Iterator; public class DocumentNavigator extends DefaultNavigator { @@ -35,8 +37,7 @@ * correct XPath expression */ public XPath parseXPath(String xpath) throws SAXPathException { - XPath path = new BaseXPath(xpath, this); - return path; + return (XPath)new BaseXPath(xpath, this); } /**