diff --git a/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java b/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java index d67bb0e5f7..2f157a1b83 100644 --- a/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java +++ b/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java @@ -33,8 +33,6 @@ import java.util.Locale; import java.util.Map; import java.util.Set; -import javolution.util.FastList; - import org.ofbiz.base.util.Debug; import org.ofbiz.base.util.UtilDateTime; import org.ofbiz.base.util.UtilFormatOut; @@ -3015,7 +3013,7 @@ public class OrderReadHelper { } public List getShippableSizes(String shipGrouSeqId) { - List shippableSizes = FastList.newInstance(); + List shippableSizes = new ArrayList(); List validItems = getValidOrderItems(shipGrouSeqId); if (validItems != null) { diff --git a/framework/service/src/org/ofbiz/service/rmi/ExampleRemoteClient.java b/framework/service/src/org/ofbiz/service/rmi/ExampleRemoteClient.java index b63332c63d..a22a7e6878 100644 --- a/framework/service/src/org/ofbiz/service/rmi/ExampleRemoteClient.java +++ b/framework/service/src/org/ofbiz/service/rmi/ExampleRemoteClient.java @@ -38,7 +38,6 @@ import org.ofbiz.service.GenericServiceException; * * The following third-party libraries (can be found in OFBiz) also need to be on the client's classpath: * commons-collections.jar - * javolution.jar * jdbm.jar * log4j.jar * diff --git a/specialpurpose/passport/src/org/ofbiz/passport/user/GitHubAuthenticator.java b/specialpurpose/passport/src/org/ofbiz/passport/user/GitHubAuthenticator.java index d241a793f1..b9d50eb4e6 100644 --- a/specialpurpose/passport/src/org/ofbiz/passport/user/GitHubAuthenticator.java +++ b/specialpurpose/passport/src/org/ofbiz/passport/user/GitHubAuthenticator.java @@ -18,6 +18,7 @@ *******************************************************************************/ package org.ofbiz.passport.user; +import java.util.HashMap; import java.util.Locale; import java.util.Map; import java.io.IOException; @@ -55,8 +56,6 @@ import org.ofbiz.base.util.UtilMisc; import org.ofbiz.base.util.UtilDateTime; import org.ofbiz.base.util.UtilValidate; -import javolution.util.FastMap; - /** * GitHub OFBiz Authenticator */ @@ -250,7 +249,7 @@ public class GitHubAuthenticator implements Authenticator { private String createUser(Map userMap, GenericValue system) throws AuthenticatorException { // create person + userLogin - Map createPersonUlMap = FastMap.newInstance(); + Map createPersonUlMap = new HashMap(); String userLoginId = delegator.getNextSeqId("UserLogin"); if (userMap.containsKey("name")) { // use github's name as OFBiz's lastName @@ -286,7 +285,7 @@ public class GitHubAuthenticator implements Authenticator { // create email if (userMap.containsKey("email")) { - Map createEmailMap = FastMap.newInstance(); + Map createEmailMap = new HashMap(); createEmailMap.put("emailAddress", (String) userMap.get("email")); createEmailMap.put("contactMechPurposeTypeId", "PRIMARY_EMAIL"); createEmailMap.put("partyId", partyId); @@ -315,7 +314,7 @@ public class GitHubAuthenticator implements Authenticator { // add it to the user if it exists if (secGroup != null) { - Map createSecGrpMap = FastMap.newInstance(); + Map createSecGrpMap = new HashMap(); createSecGrpMap.put("userLoginId", userLoginId); createSecGrpMap.put("groupId", securityGroup); createSecGrpMap.put("fromDate", now); diff --git a/specialpurpose/passport/src/org/ofbiz/passport/user/GitHubUserGroupMapper.java b/specialpurpose/passport/src/org/ofbiz/passport/user/GitHubUserGroupMapper.java index 7f452af02c..e6a5480cb0 100644 --- a/specialpurpose/passport/src/org/ofbiz/passport/user/GitHubUserGroupMapper.java +++ b/specialpurpose/passport/src/org/ofbiz/passport/user/GitHubUserGroupMapper.java @@ -18,6 +18,8 @@ *******************************************************************************/ package org.ofbiz.passport.user; +import java.util.ArrayList; +import java.util.HashSet; import java.util.List; import java.util.Properties; import java.util.Arrays; @@ -25,9 +27,6 @@ import java.util.Set; import org.ofbiz.base.util.UtilProperties; -import javolution.util.FastList; -import javolution.util.FastSet; - /** * GitHub UserGroupMapper */ @@ -41,7 +40,7 @@ public class GitHubUserGroupMapper { public GitHubUserGroupMapper(String group) { if (groups == null) { - groups = FastList.newInstance(); + groups = new ArrayList(); } groups.add(group); } @@ -49,7 +48,7 @@ public class GitHubUserGroupMapper { public Set getSecurityGroups() { Properties props = UtilProperties.getProperties(GitHubAuthenticator.props); - Set secGroups = FastSet.newInstance(); + Set secGroups = new HashSet(); boolean running = true; int index = 1; diff --git a/specialpurpose/passport/src/org/ofbiz/passport/user/LinkedInAuthenticator.java b/specialpurpose/passport/src/org/ofbiz/passport/user/LinkedInAuthenticator.java index 4f7e644177..1e670e35ee 100644 --- a/specialpurpose/passport/src/org/ofbiz/passport/user/LinkedInAuthenticator.java +++ b/specialpurpose/passport/src/org/ofbiz/passport/user/LinkedInAuthenticator.java @@ -18,6 +18,7 @@ *******************************************************************************/ package org.ofbiz.passport.user; +import java.util.HashMap; import java.util.Locale; import java.util.Map; import java.io.IOException; @@ -56,8 +57,6 @@ import org.w3c.dom.Element; import org.w3c.dom.NodeList; import org.xml.sax.SAXException; -import javolution.util.FastMap; - /** * LinkedIn OFBiz Authenticator */ @@ -260,7 +259,7 @@ public class LinkedInAuthenticator implements Authenticator { Map userInfo = parseLinkedInUserInfo(user); // create person + userLogin - Map createPersonUlMap = FastMap.newInstance(); + Map createPersonUlMap = new HashMap(); String userLoginId = delegator.getNextSeqId("UserLogin"); if (userInfo.containsKey("firstName")) { createPersonUlMap.put("firstName", userInfo.get("firstName")); @@ -298,7 +297,7 @@ public class LinkedInAuthenticator implements Authenticator { // create email if (userInfo.containsKey("emailAddress")) { - Map createEmailMap = FastMap.newInstance(); + Map createEmailMap = new HashMap(); createEmailMap.put("emailAddress", userInfo.get("emailAddress")); createEmailMap.put("contactMechPurposeTypeId", "PRIMARY_EMAIL"); createEmailMap.put("partyId", partyId); @@ -327,7 +326,7 @@ public class LinkedInAuthenticator implements Authenticator { // add it to the user if it exists if (secGroup != null) { - Map createSecGrpMap = FastMap.newInstance(); + Map createSecGrpMap = new HashMap(); createSecGrpMap.put("userLoginId", userLoginId); createSecGrpMap.put("groupId", securityGroup); createSecGrpMap.put("fromDate", now); @@ -437,7 +436,7 @@ public class LinkedInAuthenticator implements Authenticator { } public static Map parseLinkedInUserInfo(Document userInfo) { - Map results = FastMap.newInstance(); + Map results = new HashMap(); NodeList persons = userInfo.getElementsByTagName("person"); if (UtilValidate.isEmpty(persons) || persons.getLength() <= 0) { return results; diff --git a/specialpurpose/passport/src/org/ofbiz/passport/user/LinkedInUserGroupMapper.java b/specialpurpose/passport/src/org/ofbiz/passport/user/LinkedInUserGroupMapper.java index 88eecd6234..832afaa10f 100644 --- a/specialpurpose/passport/src/org/ofbiz/passport/user/LinkedInUserGroupMapper.java +++ b/specialpurpose/passport/src/org/ofbiz/passport/user/LinkedInUserGroupMapper.java @@ -18,6 +18,8 @@ *******************************************************************************/ package org.ofbiz.passport.user; +import java.util.ArrayList; +import java.util.HashSet; import java.util.List; import java.util.Properties; import java.util.Arrays; @@ -25,9 +27,6 @@ import java.util.Set; import org.ofbiz.base.util.UtilProperties; -import javolution.util.FastList; -import javolution.util.FastSet; - /** * LinkedIn UserGroupMapper */ @@ -41,7 +40,7 @@ public class LinkedInUserGroupMapper { public LinkedInUserGroupMapper(String group) { if (groups == null) { - groups = FastList.newInstance(); + groups = new ArrayList(); } groups.add(group); } @@ -49,7 +48,7 @@ public class LinkedInUserGroupMapper { public Set getSecurityGroups() { Properties props = UtilProperties.getProperties(LinkedInAuthenticator.props); - Set secGroups = FastSet.newInstance(); + Set secGroups = new HashSet(); boolean running = true; int index = 1; diff --git a/specialpurpose/scrum/webapp/scrum/reports/Burndown.rptdesign b/specialpurpose/scrum/webapp/scrum/reports/Burndown.rptdesign index 19fc9c2144..7a877eb550 100644 --- a/specialpurpose/scrum/webapp/scrum/reports/Burndown.rptdesign +++ b/specialpurpose/scrum/webapp/scrum/reports/Burndown.rptdesign @@ -25,7 +25,6 @@ importPackage(Packages.java.math); importPackage(Packages.java.sql); importPackage(Packages.java.text); importPackage(Packages.java.util); -importPackage(Packages.javolution.util); importPackage(Packages.org.ofbiz.base.util); importPackage(Packages.org.ofbiz.entity.condition); @@ -47,7 +46,7 @@ var countHoliday = 0; while (countHoliday < dayNumber) { var conditionTimestampFrom = new Timestamp(actualStartDate.getTime() + (countHoliday*1000*60*60*24)); // get public holiday - var holidayConds = FastList.newInstance(); + var holidayConds = new ArrayList(); holidayConds.add(EntityCondition.makeCondition("workEffortTypeId",EntityOperator.EQUALS, "PUBLIC_HOLIDAY")); holidayConds.add(EntityCondition.makeCondition("estimatedStartDate", EntityOperator.EQUALS, conditionTimestampFrom)); var fieldsToSelect = UtilMisc.toSet("workEffortId","estimatedStartDate"); @@ -236,7 +235,7 @@ remainActualHours = BigDecimal.ZERO; averageHours = previousAverageHours; -holidays = FastList.newInstance(); +holidays = new ArrayList(); reportContext.getAppContext().put("holidays", holidays); ]]> = dayNumber || currentDay >= 0) return false; @@ -253,7 +252,7 @@ if (nowTimestamp.getTime() >= conditionTimestampFrom.getTime() && nowTim } // get public holiday -var holidayConds = FastList.newInstance(); +var holidayConds = new ArrayList(); holidayConds.add(EntityCondition.makeCondition("workEffortTypeId",EntityOperator.EQUALS, "PUBLIC_HOLIDAY")); holidayConds.add(EntityCondition.makeCondition("estimatedStartDate", EntityOperator.EQUALS, conditionTimestampFrom)); var fieldsToSelect = UtilMisc.toSet("workEffortId","estimatedStartDate"); @@ -281,7 +280,7 @@ for (i=0; iData Source getCatalogIdsByCategoryId(Delegator delegator, String productCategoryId) { - List catalogIds = FastList.newInstance(); + List catalogIds = new ArrayList(); List catalogs = null; try { EntityCondition condition = EntityCondition.makeCondition(UtilMisc.toMap("productCategoryId", productCategoryId)); @@ -67,23 +66,23 @@ public abstract class CategoryUtil { public static List> getCategoryTrail(String productCategoryId, DispatchContext dctx) { GenericDelegator delegator = (GenericDelegator) dctx.getDelegator(); - List> trailElements = FastList.newInstance(); + List> trailElements = new ArrayList>(); String parentProductCategoryId = productCategoryId; while (UtilValidate.isNotEmpty(parentProductCategoryId)) { // find product category rollup try { - List rolllupConds = FastList.newInstance(); + List rolllupConds = new ArrayList(); rolllupConds.add(EntityCondition.makeCondition("productCategoryId", parentProductCategoryId)); rolllupConds.add(EntityUtil.getFilterByDateExpr()); List productCategoryRollups = delegator.findList("ProductCategoryRollup", EntityCondition.makeCondition(rolllupConds), null, UtilMisc.toList("-fromDate"), null, true); if (UtilValidate.isNotEmpty(productCategoryRollups)) { - List> trailElementsAux = FastList.newInstance(); + List> trailElementsAux = new ArrayList>(); trailElementsAux.addAll(trailElements); // add only categories that belong to the top category to trail for (GenericValue productCategoryRollup : productCategoryRollups) { String trailCategoryId = productCategoryRollup.getString("parentProductCategoryId"); parentProductCategoryId = trailCategoryId; - List trailElement = FastList.newInstance(); + List trailElement = new ArrayList(); if (!trailElements.isEmpty()) { for (List trailList : trailElementsAux) { trailElement.add(trailCategoryId); @@ -106,7 +105,7 @@ public abstract class CategoryUtil { } } if (trailElements.size() == 0) { - List trailElement = FastList.newInstance(); + List trailElement = new ArrayList(); trailElement.add(productCategoryId); trailElements.add(trailElement); } diff --git a/specialpurpose/solr/src/org/ofbiz/solr/ProductUtil.java b/specialpurpose/solr/src/org/ofbiz/solr/ProductUtil.java index d7df10c9e9..eeb220abd2 100644 --- a/specialpurpose/solr/src/org/ofbiz/solr/ProductUtil.java +++ b/specialpurpose/solr/src/org/ofbiz/solr/ProductUtil.java @@ -27,9 +27,6 @@ import java.util.Locale; import java.util.Map; import java.util.Set; -import javolution.util.FastList; -import javolution.util.FastMap; - import org.ofbiz.base.util.Debug; import org.ofbiz.base.util.UtilMisc; import org.ofbiz.entity.GenericDelegator; @@ -117,7 +114,7 @@ public abstract class ProductUtil { dispatchContext.put("category", trails); // Get the catalogs that have associated the categories - List catalogs = FastList.newInstance(); + List catalogs = new ArrayList(); for (String trail : trails) { String productCategoryId = (trail.split("/").length > 0) ? trail.split("/")[1] : trail; List catalogMembers = CategoryUtil.getCatalogIdsByCategoryId(delegator, productCategoryId); @@ -154,7 +151,7 @@ public abstract class ProductUtil { if (isPhysical) dispatchContext.put("isPhysical", isPhysical); - FastMap title = new FastMap(); + Map title = new HashMap(); String detitle = productContentDe.get("PRODUCT_NAME", "html").toString(); if (detitle != null) title.put("de", detitle); @@ -172,7 +169,7 @@ public abstract class ProductUtil { title.put("fr", (String) product.get("productName")); dispatchContext.put("title", title); - Map description = new FastMap(); + Map description = new HashMap(); String dedescription = productContentDe.get("DESCRIPTION", "html").toString(); if (dedescription != null) description.put("de", dedescription); @@ -184,7 +181,7 @@ public abstract class ProductUtil { description.put("fr", frdescription); dispatchContext.put("description", description); - FastMap longDescription = new FastMap(); + Map longDescription = new HashMap(); String delongDescription = productContentDe.get("LONG_DESCRIPTION", "html").toString(); if (delongDescription != null) longDescription.put("de", delongDescription); diff --git a/specialpurpose/solr/src/org/ofbiz/solr/SolrProductSearch.java b/specialpurpose/solr/src/org/ofbiz/solr/SolrProductSearch.java index dc1d78a63e..319c9dc7f8 100644 --- a/specialpurpose/solr/src/org/ofbiz/solr/SolrProductSearch.java +++ b/specialpurpose/solr/src/org/ofbiz/solr/SolrProductSearch.java @@ -24,14 +24,13 @@ import java.net.MalformedURLException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; +import java.util.HashMap; import java.util.Iterator; +import java.util.LinkedList; import java.util.List; import java.util.Locale; import java.util.Map; -import javolution.util.FastList; -import javolution.util.FastMap; - import org.apache.commons.lang.StringUtils; import org.apache.solr.client.solrj.SolrQuery; import org.apache.solr.client.solrj.SolrServerException; @@ -366,7 +365,7 @@ public abstract class SolrProductSearch { LocalDispatcher dispatcher = dctx.getDispatcher(); try { - Map dispatchMap = FastMap.newInstance(); + Map dispatchMap = new HashMap(); if (UtilValidate.isNotEmpty(context.get("productCategoryId"))){ String productCategoryId = (String) context.get("productCategoryId"); dispatchMap.put("query", "cat:*" + productCategoryId+"*"); @@ -409,7 +408,7 @@ public abstract class SolrProductSearch { if (context.get("query") == null || context.get("query").equals("")) context.put("query", "*:*"); - Map dispatchMap = FastMap.newInstance(); + Map dispatchMap = new HashMap(); if (context.get("viewSize") != null) dispatchMap.put("viewSize", Integer.parseInt(((String) context.get("viewSize")))); if (context.get("viewIndex") != null) @@ -422,7 +421,7 @@ public abstract class SolrProductSearch { Map searchResult = dispatcher.runSync("runSolrQuery", dispatchMap); QueryResponse queryResult = (QueryResponse) searchResult.get("queryResult"); - List> suggestions = FastList.newInstance(); + List> suggestions = new ArrayList>(); if (queryResult.getSpellCheckResponse() != null && queryResult.getSpellCheckResponse().getSuggestions() != null) { Iterator iter = queryResult.getSpellCheckResponse().getSuggestions().iterator(); while (iter.hasNext()) { @@ -441,16 +440,16 @@ public abstract class SolrProductSearch { result.put("isCorrectlySpelled", isCorrectlySpelled); Map facetQuery = queryResult.getFacetQuery(); - Map facetQueries = FastMap.newInstance(); + Map facetQueries = new HashMap(); for (String fq : facetQuery.keySet()) { if (facetQuery.get(fq).intValue() > 0) facetQueries.put(fq, fq.replaceAll("^.*\\u005B(.*)\\u005D", "$1") + " (" + facetQuery.get(fq).intValue() + ")"); } - Map> facetFields = FastMap.newInstance(); + Map> facetFields = new HashMap>(); List facets = queryResult.getFacetFields(); for (FacetField facet : facets) { - Map facetEntry = FastMap.newInstance(); + Map facetEntry = new HashMap(); List facetEntries = facet.getValues(); if (UtilValidate.isNotEmpty(facetEntries)) { for (FacetField.Count fcount : facetEntries) @@ -503,7 +502,7 @@ public abstract class SolrProductSearch { QueryResponse cat = (QueryResponse) query.get("rows"); result = ServiceUtil.returnSuccess(); result.put("numFound", (long) 0); - Map categories = FastMap.newInstance(); + Map categories = new HashMap(); List catList = (List) cat.getFacetFields(); for (Iterator catIterator = catList.iterator(); catIterator.hasNext();) { FacetField field = (FacetField) catIterator.next(); @@ -541,7 +540,7 @@ public abstract class SolrProductSearch { String productCategoryId = (String) context.get("productCategoryId") != null ? CategoryUtil.getCategoryNameWithTrail((String) context.get("productCategoryId"),dctx) : null; result = ServiceUtil.returnSuccess(); - Map>> catLevel = FastMap.newInstance(); + Map>> catLevel = new HashMap>>(); Debug.logInfo("productCategoryId: "+productCategoryId, module); //Add toplevel categories @@ -559,7 +558,7 @@ public abstract class SolrProductSearch { //Debug.logInfo("categoryPath: "+categoryPath + " facetQuery: "+facetQuery,module); Map query = SolrUtil.categoriesAvailable(catalogId, categoryPath, null, facetQuery,false, 0, 0); QueryResponse cat = (QueryResponse) query.get("rows"); - List> categories = FastList.newInstance(); + List> categories = new ArrayList>(); List catList = (List) cat.getFacetFields(); @@ -570,8 +569,8 @@ public abstract class SolrProductSearch { for (Iterator catIter = catL.iterator(); catIter.hasNext();) { FacetField.Count f = (FacetField.Count) catIter.next(); if (f.getCount() > 0) { - Map catMap = FastMap.newInstance(); - FastList iName = FastList.newInstance(); + Map catMap = new HashMap(); + LinkedList iName = new LinkedList(); iName.addAll(Arrays.asList(f.getName().split("/"))); //Debug.logInfo("topLevel "+topLevel,""); // int l = Integer.parseInt((String) iName.getFirst()); @@ -621,7 +620,7 @@ public abstract class SolrProductSearch { client = new HttpSolrClient(SolrUtil.solrUrl); // now lets fetch all products - List> solrDocs = FastList.newInstance(); + List> solrDocs = new ArrayList>(); List products = delegator.findList("Product", null, null, null, null, true); int numDocs = 0; if (products != null) { diff --git a/specialpurpose/solr/src/org/ofbiz/solr/SolrUtil.java b/specialpurpose/solr/src/org/ofbiz/solr/SolrUtil.java index 766a519c47..45112a58a8 100644 --- a/specialpurpose/solr/src/org/ofbiz/solr/SolrUtil.java +++ b/specialpurpose/solr/src/org/ofbiz/solr/SolrUtil.java @@ -18,13 +18,12 @@ *******************************************************************************/ package org.ofbiz.solr; +import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; -import javolution.util.FastMap; - import org.apache.solr.client.solrj.SolrQuery; import org.apache.solr.client.solrj.SolrRequest.METHOD; import org.apache.solr.client.solrj.impl.HttpSolrClient; @@ -188,7 +187,7 @@ public abstract class SolrUtil { public static Map categoriesAvailable(String catalogId, String categoryId, String productId, String facetPrefix, boolean displayproducts, int viewIndex, int viewSize) { // create the data model - Map result = FastMap.newInstance(); + Map result = new HashMap(); HttpSolrClient client = null; QueryResponse returnMap = new QueryResponse(); try {