hadoop-mapreduce-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yhema...@apache.org
Subject svn commit: r816635 - in /hadoop/mapreduce/trunk: CHANGES.txt src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/server/HadoopJob.java
Date Fri, 18 Sep 2009 13:57:59 GMT
Author: yhemanth
Date: Fri Sep 18 13:57:58 2009
New Revision: 816635

URL: http://svn.apache.org/viewvc?rev=816635&view=rev
Log:
MAPREDUCE-1003. Fix compilation problem in eclipse plugin when eclipse.home is set. Contributed
by Ravi Gummadi.

Modified:
    hadoop/mapreduce/trunk/CHANGES.txt
    hadoop/mapreduce/trunk/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/server/HadoopJob.java

Modified: hadoop/mapreduce/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/mapreduce/trunk/CHANGES.txt?rev=816635&r1=816634&r2=816635&view=diff
==============================================================================
--- hadoop/mapreduce/trunk/CHANGES.txt (original)
+++ hadoop/mapreduce/trunk/CHANGES.txt Fri Sep 18 13:57:58 2009
@@ -662,3 +662,6 @@
     MAPREDUCE-1002. Flushed writer in JobQueueClient so queue information is
     printed correctly. (V.V. Chaitanya Krishna via yhemanth)
 
+    MAPREDUCE-1003. Fix compilation problem in eclipse plugin when
+    eclipse.home is set. (Ravi Gummadi via yhemanth)
+

Modified: hadoop/mapreduce/trunk/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/server/HadoopJob.java
URL: http://svn.apache.org/viewvc/hadoop/mapreduce/trunk/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/server/HadoopJob.java?rev=816635&r1=816634&r2=816635&view=diff
==============================================================================
--- hadoop/mapreduce/trunk/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/server/HadoopJob.java
(original)
+++ hadoop/mapreduce/trunk/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/server/HadoopJob.java
Fri Sep 18 13:57:58 2009
@@ -50,17 +50,20 @@
     }
 
     static JobState ofInt(int state) {
-      switch (state) {
-        case JobStatus.PREP:
-          return PREPARE;
-        case JobStatus.RUNNING:
-          return RUNNING;
-        case JobStatus.FAILED:
-          return FAILED;
-        case JobStatus.SUCCEEDED:
-          return SUCCEEDED;
-        default:
-          return null;
+      if (state == JobStatus.PREP) {
+        return PREPARE;
+      }
+      else if (state == JobStatus.RUNNING) {
+        return RUNNING;
+      }
+      else if (state == JobStatus.FAILED) {
+        return FAILED;
+      }
+      else if (state == JobStatus.SUCCEEDED) {
+        return SUCCEEDED;
+      }
+      else {
+        return null;
       }
     }
   }



Mime
View raw message