hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1468606 - /hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.java
Date Tue, 16 Apr 2013 20:57:03 GMT
Author: tedyu
Date: Tue Apr 16 20:57:02 2013
New Revision: 1468606

URL: http://svn.apache.org/r1468606
Log:
HBASE-8326 Addendum simplifies lookup in packagedClasses (Nick)


Modified:
    hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.java

Modified: hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.java?rev=1468606&r1=1468605&r2=1468606&view=diff
==============================================================================
--- hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.java
(original)
+++ hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.java
Tue Apr 16 20:57:02 2013
@@ -670,11 +670,9 @@ public class TableMapReduceUtil {
       }
     }
 
-    // now look in any jars we've packaged using JarFinder
-    for (Map.Entry<String, String> e : packagedClasses.entrySet()) {
-      if (e.getKey().equals(class_file)) return e.getValue();
-    }
-    return null;
+    // now look in any jars we've packaged using JarFinder. Returns null when
+    // no jar is found.
+    return packagedClasses.get(class_file);
   }
 
   /**



Mime
View raw message