airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject airavata git commit: fixed the enum
Date Tue, 12 May 2015 19:31:00 GMT
Repository: airavata
Updated Branches:
  refs/heads/master 6f8fa3e90 -> 1b84883f1


fixed the enum


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

Branch: refs/heads/master
Commit: 1b84883f194f3a5f9b228d63d3e46b9d8f936909
Parents: 6f8fa3e
Author: Chathuri Wimalasena <chathuri@apache.org>
Authored: Tue May 12 15:30:53 2015 -0400
Committer: Chathuri Wimalasena <chathuri@apache.org>
Committed: Tue May 12 15:30:53 2015 -0400

----------------------------------------------------------------------
 .../main/java/org/apache/airavata/gfac/core/utils/GFacUtils.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/1b84883f/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/utils/GFacUtils.java
----------------------------------------------------------------------
diff --git a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/utils/GFacUtils.java
b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/utils/GFacUtils.java
index b49c041..9861cdc 100644
--- a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/utils/GFacUtils.java
+++ b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/utils/GFacUtils.java
@@ -906,7 +906,7 @@ public class GFacUtils {
         if (expState == null || expState.isEmpty()) {
             return GfacExperimentState.UNKNOWN;
         }
-        return GfacExperimentState.valueOf(expState);
+        return GfacExperimentState.findByValue(Integer.valueOf(expState));
     }
 
 	public static int getZKExperimentStateValue(ZooKeeper zk,


Mime
View raw message