svn commit: r1061518 - /ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/util/UtilAccounting.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1061518 - /ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/util/UtilAccounting.java

mrisaliti
Author: mrisaliti
Date: Thu Jan 20 21:13:21 2011
New Revision: 1061518

URL: http://svn.apache.org/viewvc?rev=1061518&view=rev
Log:
Remove java compilation warnings from UtilAccounting.getDescendantGlAccountClassIds (OFBIZ-4102)

Modified:
    ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/util/UtilAccounting.java

Modified: ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/util/UtilAccounting.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/util/UtilAccounting.java?rev=1061518&r1=1061517&r2=1061518&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/util/UtilAccounting.java (original)
+++ ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/util/UtilAccounting.java Thu Jan 20 21:13:21 2011
@@ -117,15 +117,15 @@ public class UtilAccounting {
         return balance;
     }
 
-    public static List getDescendantGlAccountClassIds(GenericValue glAccountClass) throws GenericEntityException {
-        List glAccountClassIds = FastList.newInstance();
+    public static List<String> getDescendantGlAccountClassIds(GenericValue glAccountClass) throws GenericEntityException {
+        List<String> glAccountClassIds = FastList.newInstance();
         getGlAccountClassChildren(glAccountClass, glAccountClassIds);
         return glAccountClassIds;
     }
-    private static void getGlAccountClassChildren(GenericValue glAccountClass, List glAccountClassIds) throws GenericEntityException {
+    private static void getGlAccountClassChildren(GenericValue glAccountClass, List<String> glAccountClassIds) throws GenericEntityException {
         glAccountClassIds.add(glAccountClass.getString("glAccountClassId"));
-        List glAccountClassChildren = glAccountClass.getRelatedCache("ChildGlAccountClass");
-        Iterator glAccountClassChildrenIt = glAccountClassChildren.iterator();
+        List<GenericValue> glAccountClassChildren = glAccountClass.getRelatedCache("ChildGlAccountClass");
+        Iterator<GenericValue> glAccountClassChildrenIt = glAccountClassChildren.iterator();
         while (glAccountClassChildrenIt.hasNext()) {
             GenericValue glAccountClassChild = (GenericValue) glAccountClassChildrenIt.next();
             getGlAccountClassChildren(glAccountClassChild, glAccountClassIds);