Implemented: Refer to objects by their interfaces rather than class when instantiating Collection implementation classes in Java files

(OFBIZ-9023) (OFBIZ-9026)(OFBIZ-9027)(OFBIZ-9032)(OFBIZ-9034)(OFBIZ-9036)(OFBIZ-9030)

Thanks: Divesh Dutta, Amit Gadaley and Shubham Agrawal for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768189 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Arun Patidar
2016-11-05 11:16:49 +00:00
parent 3eca8d6aad
commit 80498ef38d
26 changed files with 43 additions and 43 deletions
@@ -211,7 +211,7 @@ public class DatabaseUtil {
timer.timerString("Before Individual Table/Column Check");
ArrayList<ModelEntity> modelEntityList = new ArrayList<ModelEntity>(modelEntities.values());
List<ModelEntity> modelEntityList = new ArrayList<ModelEntity>(modelEntities.values());
// sort using compareTo method on ModelEntity
Collections.sort(modelEntityList);
int curEnt = 0;
@@ -319,7 +319,7 @@ TEMP_VIEW_LOOP:
}
// auto-create relationships
TreeSet<String> orderedMessages = new TreeSet<String>();
Set<String> orderedMessages = new TreeSet<String>();
for (String curEntityName: new TreeSet<String>(this.getEntityNames())) {
ModelEntity curModelEntity = this.getModelEntity(curEntityName);
if (curModelEntity instanceof ModelViewEntity) {
@@ -586,7 +586,7 @@ public class EntityTestSuite extends EntityTestCase {
.where(EntityCondition.makeCondition("testingId", EntityOperator.LIKE, "rnmat:%"))
.queryList();
ArrayList<GenericValue> testings = new ArrayList<GenericValue>();
List<GenericValue> testings = new ArrayList<GenericValue>();
for (GenericValue nodeMember: values) {
testings.add(nodeMember.getRelatedOne("Testing", false));