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:
parent
c2bb416c71
commit
496c9a666b
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue