lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gre...@apache.org
Subject svn commit: r168997 - /lenya/trunk/src/java/org/apache/lenya/cms/site/usecases/ChangeLabel.java
Date Sat, 07 May 2005 01:27:59 GMT
Author: gregor
Date: Fri May  6 18:27:57 2005
New Revision: 168997

URL: http://svn.apache.org/viewcvs?rev=168997&view=rev
Log:
Removed unnecessary comparison to null

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

Modified: lenya/trunk/src/java/org/apache/lenya/cms/site/usecases/ChangeLabel.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/java/org/apache/lenya/cms/site/usecases/ChangeLabel.java?rev=168997&r1=168996&r2=168997&view=diff
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/cms/site/usecases/ChangeLabel.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/site/usecases/ChangeLabel.java Fri May  6 18:27:57
2005
@@ -91,11 +91,11 @@
             siteManager = (SiteManager) selector.select(document.getPublication()
                     .getSiteManagerHint());
 
-            if (document != null && document.exists()) {
+            if (document.exists()) {
                 setParameter(DOCUMENT_ID, document.getId());
                 setParameter(LABEL, siteManager.getLabel(document));
             }
-        } catch (Exception e) {
+        } catch (final Exception e) {
             throw new RuntimeException(e);
         } finally {
             if (selector != null) {



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


Mime
View raw message