Author: jacopoc
Date: Sat Dec 2 02:52:28 2006
New Revision: 481547
URL:
http://svn.apache.org/viewvc?view=rev&rev=481547Log:
Applied patch from Stefan Huehner (OFBIZ-511), to remove some unnecessary casts where the source-type and the casted-to type are identical.
Modified:
incubator/ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementWorker.java
Modified: incubator/ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementWorker.java
URL:
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementWorker.java?view=diff&rev=481547&r1=481546&r2=481547==============================================================================
--- incubator/ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementWorker.java (original)
+++ incubator/ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementWorker.java Sat Dec 2 02:52:28 2006
@@ -444,7 +444,7 @@
Iterator it2 = permittedPublishPointList.iterator();
while (it2.hasNext()) {
String [] publishPointArray = (String [])it2.next();
- String publishPointId = (String)publishPointArray[0];
+ String publishPointId = publishPointArray[0];
//fieldName = "_" + Integer.toString(counter) + "_" + publishPointId;
String fieldName = publishPointId;
List contentAssocList = content.getRelatedByAnd("ToContentAssoc", UtilMisc.toMap("contentId", publishPointId));
@@ -568,8 +568,8 @@
//String contentId = (String)webSitePublishPoint.get("contentId");
//String description = (String)webSitePublishPoint.get("description");
String [] arr = (String [])it.next();
- String contentId = (String)arr[0];
- String description = (String)arr[1];
+ String contentId = arr[0];
+ String description = arr[1];
List subPointList = new ArrayList();
Object nullObj = null;
Object [] subArr = {contentId, subPointList, description, nullObj};