HADOOP-9121. InodeTree.java has redundant check for vName while throwing exception. Contributed by Arup Malakar.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1418005 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Suresh Srinivas 2012-12-06 17:09:17 +00:00
parent 2d1237cbb0
commit a5331eeead
2 changed files with 6 additions and 4 deletions

View File

@ -289,6 +289,9 @@ Trunk (Unreleased)
HADOOP-9037. Bug in test-patch.sh and precommit build process (Kihwal Lee HADOOP-9037. Bug in test-patch.sh and precommit build process (Kihwal Lee
via jlowe) via jlowe)
HADOOP-9121. InodeTree.java has redundant check for vName while
throwing exception. (Arup Malakar via suresh)
OPTIMIZATIONS OPTIMIZATIONS
HADOOP-7761. Improve the performance of raw comparisons. (todd) HADOOP-7761. Improve the performance of raw comparisons. (todd)

View File

@ -118,8 +118,7 @@ abstract class InodeTree<T> {
return result; return result;
} }
INode<T> resolveInternal(final String pathComponent) INode<T> resolveInternal(final String pathComponent) {
throws FileNotFoundException {
return children.get(pathComponent); return children.get(pathComponent);
} }
@ -337,7 +336,7 @@ abstract class InodeTree<T> {
if (!gotMountTableEntry) { if (!gotMountTableEntry) {
throw new IOException( throw new IOException(
"ViewFs: Cannot initialize: Empty Mount table in config for " + "ViewFs: Cannot initialize: Empty Mount table in config for " +
vName == null ? "viewfs:///" : ("viewfs://" + vName + "/")); "viewfs://" + vName + "/");
} }
} }