airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject [1/2] airavata git commit: AIRAVATA-1531 changing HashMap to LinkedHashMap to preserve order
Date Tue, 14 Jul 2015 14:10:41 GMT
Repository: airavata
Updated Branches:
  refs/heads/airavata-0.15-release-branch 0d70dc576 -> 45dfc6caa


AIRAVATA-1531 changing HashMap to LinkedHashMap to preserve order


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/194a0fd3
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/194a0fd3
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/194a0fd3

Branch: refs/heads/airavata-0.15-release-branch
Commit: 194a0fd36151757d5e3e4739d2b5a1dde46507bf
Parents: 1d57c62
Author: Supun Nakandala <scnakandala@apache.org>
Authored: Tue Jul 14 19:39:36 2015 +0530
Committer: Supun Nakandala <scnakandala@apache.org>
Committed: Tue Jul 14 19:39:36 2015 +0530

----------------------------------------------------------------------
 .../application/catalog/data/impl/ComputeResourceImpl.java    | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/194a0fd3/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/impl/ComputeResourceImpl.java
----------------------------------------------------------------------
diff --git a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/impl/ComputeResourceImpl.java
b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/impl/ComputeResourceImpl.java
index 40b3210..2a61177 100644
--- a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/impl/ComputeResourceImpl.java
+++ b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/impl/ComputeResourceImpl.java
@@ -30,10 +30,7 @@ import org.apache.airavata.model.appcatalog.computeresource.*;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
+import java.util.*;
 
 public class ComputeResourceImpl implements ComputeResource {
     private final static Logger logger = LoggerFactory.getLogger(ComputeResourceImpl.class);
@@ -460,7 +457,7 @@ public class ComputeResourceImpl implements ComputeResource {
     @Override
     public Map<String, String> getAllComputeResourceIdList() throws AppCatalogException
{
         try {
-            Map<String, String> computeResourceMap = new HashMap<String, String>();
+            Map<String, String> computeResourceMap = new LinkedHashMap<String, String>();
             ComputeResourceResource resource = new ComputeResourceResource();
             List<Resource> allComputeResources = resource.getAll();
             if (allComputeResources != null && !allComputeResources.isEmpty()){


Mime
View raw message