Author: bpapez
Date: Mon Jul  2 11:55:56 2007
New Revision: 17853

URL: https://svndev.jahia.net/websvn/listing.php?sc=3D1&rev=3D17853&repname=
=3Djahia
Log:
remove type check if all returned objects are categories now

Modified:
    branches/JAHIA-4-1-BRANCH/src/java/org/jahia/services/categories/Catego=
ry.java

Modified: branches/JAHIA-4-1-BRANCH/src/java/org/jahia/services/categories/=
Category.java
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/branches/JAHIA-4-1-BR=
ANCH/src/java/org/jahia/services/categories/Category.java&rev=3D17853&repna=
me=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/JAHIA-4-1-BRANCH/src/java/org/jahia/services/categories/Catego=
ry.java (original)
+++ branches/JAHIA-4-1-BRANCH/src/java/org/jahia/services/categories/Catego=
ry.java Mon Jul  2 11:55:56 2007
@@ -237,10 +237,8 @@
         Iterator childKeyIter =3D childKeys.iterator ();
         while (childKeyIter.hasNext ()) {
             ObjectKey curKey =3D (ObjectKey) childKeyIter.next ();
-            if (curKey instanceof CategoryKey) {
-                Category curChildCategory =3D (Category) Category.getChild=
Instance (curKey);
-                childCategories.add (curChildCategory);
-            }
+            Category curChildCategory =3D (Category) Category.getChildInst=
ance (curKey);
+            childCategories.add (curChildCategory);
         }
         return childCategories;
     }
@@ -260,13 +258,11 @@
         return ServicesRegistry.getInstance ().getCategoryService ().
                 getCategoryChildKeys (this);
     }
-
+    =

     /**
-     * Retrieves the list of child object keys for this category. This may=
 be
-     * a mixture of any type of ObjectKey sub-classes, such as CategoryKey=
 or
-     * ContentObjectKey classes
+     * Retrieves the list of child category keys for this category. =

      *
-     * @return an ArrayList containing ObjectKey classes or sub-classes
+     * @return an ArrayList containing CagegoryKey classes
      *
      * @throws JahiaException thrown if there was a problem communicating =
with
      *                        the database

_______________________________________________
cvs_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/cvs_list

Reply via email to