You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2006/03/20 16:40:53 UTC

svn commit: r387223 - /lenya/trunk/src/java/org/apache/lenya/cms/site/usecases/LinkRewriterImpl.java

Author: andreas
Date: Mon Mar 20 07:40:36 2006
New Revision: 387223

URL: http://svn.apache.org/viewcvs?rev=387223&view=rev
Log:
[minor change] code formatting

Modified:
    lenya/trunk/src/java/org/apache/lenya/cms/site/usecases/LinkRewriterImpl.java

Modified: lenya/trunk/src/java/org/apache/lenya/cms/site/usecases/LinkRewriterImpl.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/java/org/apache/lenya/cms/site/usecases/LinkRewriterImpl.java?rev=387223&r1=387222&r2=387223&view=diff
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/cms/site/usecases/LinkRewriterImpl.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/site/usecases/LinkRewriterImpl.java Mon Mar 20 07:40:36 2006
@@ -105,7 +105,8 @@
                     String[] xPaths = doctype.getLinkAttributeXPaths();
 
                     try {
-                        org.w3c.dom.Document xmlDocument = SourceUtil.readDOM(examinedDocument.getSourceURI(), this.manager);
+                        org.w3c.dom.Document xmlDocument = SourceUtil.readDOM(examinedDocument.getSourceURI(),
+                                this.manager);
 
                         for (int xPathIndex = 0; xPathIndex < xPaths.length; xPathIndex++) {
                             NodeList nodes = XPathAPI.selectNodeList(xmlDocument,
@@ -143,9 +144,10 @@
                                     examinedDocument.getSourceURI(),
                                     this.manager);
                         }
-		    } catch (SAXParseException e) {
-                        getLogger().warn("Document [" + examinedDocument + "] is not XML and will be ignored!");
-		    } catch (Exception e) {
+                    } catch (SAXParseException e) {
+                        getLogger().warn("Document [" + examinedDocument
+                                + "] is not XML and will be ignored!");
+                    } catch (Exception e) {
                         getLogger().error(e.getMessage(), e);
                     } finally {
                     }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org