You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by sn...@apache.org on 2006/06/25 21:51:34 UTC

svn commit: r417047 - /incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/model/PageRenderModel.java

Author: snoopdave
Date: Sun Jun 25 12:51:33 2006
New Revision: 417047

URL: http://svn.apache.org/viewvc?rev=417047&view=rev
Log:
oops, some JDK1.5 stuff crept in

Modified:
    incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/model/PageRenderModel.java

Modified: incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/model/PageRenderModel.java
URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/model/PageRenderModel.java?rev=417047&r1=417046&r2=417047&view=diff
==============================================================================
--- incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/model/PageRenderModel.java (original)
+++ incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/model/PageRenderModel.java Sun Jun 25 12:51:33 2006
@@ -163,8 +163,8 @@
     public List getRecentWeblogEntries(String cat, int length) {  
         if (cat != null && "nil".equals(cat)) cat = null;
         if (length > 100) length = 100;
-        if (length < 1) return Collections.emptyList();
         List recentEntries = new ArrayList();
+        if (length < 1) return recentEntries;
         try {
             WeblogManager wmgr = RollerFactory.getRoller().getWeblogManager();
             List recent = wmgr.getWeblogEntries(
@@ -197,8 +197,8 @@
      */
     public List getRecentComments(int length) {   
         if (length > 100) length = 100;
-        if (length < 1) return Collections.emptyList();
         List recentComments = new ArrayList();
+        if (length < 1) return recentComments;
         try {
             WeblogManager wmgr = RollerFactory.getRoller().getWeblogManager();
             List recent = wmgr.getComments(