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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user