From 8ac1d3a95b0a44021e6a98ce86b45414d97ac01f Mon Sep 17 00:00:00 2001 From: mishako Date: Sun, 10 Jan 2016 16:42:08 +0100 Subject: [PATCH] Fix setting xml features The argument of the method has been unused leading to all of the features being set to true regardless of the passed argument value. --- src/main/java/com/rometools/rome/io/WireFeedInput.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/rometools/rome/io/WireFeedInput.java b/src/main/java/com/rometools/rome/io/WireFeedInput.java index 4d69ac3..e5f9b6f 100644 --- a/src/main/java/com/rometools/rome/io/WireFeedInput.java +++ b/src/main/java/com/rometools/rome/io/WireFeedInput.java @@ -370,8 +370,8 @@ public class WireFeedInput { private void setFeature(SAXBuilder saxBuilder, XMLReader parser, String feature, boolean value) { try { - saxBuilder.setFeature(feature, true); - parser.setFeature(feature, true); + saxBuilder.setFeature(feature, value); + parser.setFeature(feature, value); } catch (final SAXNotRecognizedException e) { // ignore } catch (final SAXNotSupportedException e) {