You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by we...@apache.org on 2004/11/03 16:58:46 UTC
cvs commit: jakarta-jetspeed-2/components/page-manager/src/java/org/apache/jetspeed/page/impl CastorXmlPageManager.java
weaver 2004/11/03 07:58:46
Modified: components/page-manager/src/java/org/apache/jetspeed/page/impl
CastorXmlPageManager.java
Log:
Patch from Randy Walter to show empty document sets.
Revision Changes Path
1.20 +4 -4 jakarta-jetspeed-2/components/page-manager/src/java/org/apache/jetspeed/page/impl/CastorXmlPageManager.java
Index: CastorXmlPageManager.java
===================================================================
RCS file: /home/cvs/jakarta-jetspeed-2/components/page-manager/src/java/org/apache/jetspeed/page/impl/CastorXmlPageManager.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- CastorXmlPageManager.java 26 Oct 2004 19:04:48 -0000 1.19
+++ CastorXmlPageManager.java 3 Nov 2004 15:58:46 -0000 1.20
@@ -66,7 +66,7 @@
* This service is responsible for loading and saving PSML pages serialized to
* disk
*
- * @author <a href="mailto:raphael@apache.org">Rapha�l Luta </a>
+ * @author <a href="mailto:raphael@apache.org">Rapha�l Luta </a>
* @author <a href="mailto:weaver@apache.org">Scott T Weaver </a>
* @version $Id$
*/
@@ -316,7 +316,7 @@
DocumentSet documentSet = (DocumentSet) documentSetsIter.next();
NodeSetImpl documentSetNodes = null;
documentSetNodes = expandAndProfileDocumentSet(pageContext.getLocators(), documentSet, documentSetNodes);
- if ((documentSetNodes != null) && (documentSetNodes.size() > 0))
+ if (documentSetNodes != null)
{
documentSets.add(documentSet);
documentSetNodeSets.put(documentSet, documentSetNodes);
@@ -466,7 +466,7 @@
// expand document set using default document set order
NodeSetImpl documentSetNodes = new NodeSetImpl(null, documentComparator);
documentSetNodes = expandDocumentSet(documentSet, documentSetNodes);
- if ((documentSetNodes != null) && (documentSetNodes.size() > 0))
+ if (documentSetNodes != null)
{
documentSets.add(documentSet);
documentSetNodeSets.put(documentSet, documentSetNodes);
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org