HADOOP-14216. Addendum to Improve Configuration XML Parsing Performance (jeagles)

This commit is contained in:
Jonathan Eagles 2017-03-30 14:15:37 -05:00
parent a52b30f7e8
commit 60e65a3e55
1 changed files with 0 additions and 9 deletions

View File

@ -2678,9 +2678,6 @@ public class Configuration implements Iterable<Map.Entry<String,String>>,
token.setLength(0);
break;
case "include":
if (!"xi".equals(reader.getPrefix())) {
break;
}
// Determine href for xi:include
String confInclude = null;
attrCount = reader.getAttributeCount();
@ -2717,9 +2714,6 @@ public class Configuration implements Iterable<Map.Entry<String,String>>,
}
break;
case "fallback":
if (!"xi".equals(reader.getPrefix())) {
break;
}
fallbackEntered = true;
break;
case "configuration":
@ -2755,9 +2749,6 @@ public class Configuration implements Iterable<Map.Entry<String,String>>,
confSource.add(StringInterner.weakIntern(token.toString()));
break;
case "include":
if (!"xi".equals(reader.getPrefix())) {
break;
}
if (fallbackAllowed && !fallbackEntered) {
throw new IOException("Fetch fail on include with no "
+ "fallback while loading '" + name + "'");