svn commit: r636076 - /lenya/trunk/src/java/org/apache/lenya/cms/site/AbstractSiteManager.java

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: rfrovarp
Date: Tue Mar 11 12:40:28 2008
New Revision: 636076

URL: http://svn.apache.org/viewvc?rev=636076&view=rev
Log:
Pointless to have both checks run. Wrapped second in else. Related to bug 44577.

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

Modified: lenya/trunk/src/java/org/apache/lenya/cms/site/AbstractSiteManager.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/java/org/apache/lenya/cms/site/AbstractSiteManager.java?rev=636076&r1=636075&r2=636076&view=diff
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/cms/site/AbstractSiteManager.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/site/AbstractSiteManager.java Tue Mar 11 12:40:28 2008
@@ -180,7 +180,7 @@
                     if (AbstractSiteManager.this.requires(map, doc1, doc2)) {
                         result = 1;
                     }
-                    if (AbstractSiteManager.this.requires(map, doc2, doc1)) {
+                    else if (AbstractSiteManager.this.requires(map, doc2, doc1)) {
                         result = -1;
                     }
                 } catch (SiteException e) {
@@ -191,4 +191,4 @@
         }
     }
 
-}
\ No newline at end of file
+}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.