From 1309c585fb9f632f7c649464ecbe358c5130b142 Mon Sep 17 00:00:00 2001 From: Jonathan Eagles Date: Thu, 30 Mar 2017 14:14:43 -0500 Subject: [PATCH] HADOOP-14216. Addendum to Improve Configuration XML Parsing Performance (jeagles) --- .../main/java/org/apache/hadoop/conf/Configuration.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java index 36845e393b..2ac52cb394 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java @@ -2756,9 +2756,6 @@ private Resource loadResource(Properties properties, token.setLength(0); break; case "include": - if (!"xi".equals(reader.getPrefix())) { - break; - } // Determine href for xi:include String confInclude = null; attrCount = reader.getAttributeCount(); @@ -2795,9 +2792,6 @@ private Resource loadResource(Properties properties, } break; case "fallback": - if (!"xi".equals(reader.getPrefix())) { - break; - } fallbackEntered = true; break; case "configuration": @@ -2833,9 +2827,6 @@ private Resource loadResource(Properties properties, 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 + "'");