HBASE-8326 Addendum simplifies lookup in packagedClasses (Nick)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1468605 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2013-04-16 20:55:52 +00:00
parent c2bb416c71
commit 496c9a666b
1 changed files with 3 additions and 5 deletions

View File

@ -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);
}
/**