From 14ef7d204e6be72dc3a5b00ec9e08701995f6d76 Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Tue, 11 Nov 2008 21:14:02 +0000 Subject: [PATCH] o Fixed compliance with StAX-API (not all impls accept strings for properties of type Boolean) git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@713172 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/maven/shared/model/ModelMarshaller.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maven-shared-model/src/main/java/org/apache/maven/shared/model/ModelMarshaller.java b/maven-shared-model/src/main/java/org/apache/maven/shared/model/ModelMarshaller.java index 7868b1f602..6be22fc766 100644 --- a/maven-shared-model/src/main/java/org/apache/maven/shared/model/ModelMarshaller.java +++ b/maven-shared-model/src/main/java/org/apache/maven/shared/model/ModelMarshaller.java @@ -77,8 +77,8 @@ public final class ModelMarshaller List modelProperties = new ArrayList(); XMLInputFactory xmlInputFactory = XMLInputFactory.newInstance(); - xmlInputFactory.setProperty(XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES, "false"); - xmlInputFactory.setProperty(XMLInputFactory.IS_NAMESPACE_AWARE, "false"); + xmlInputFactory.setProperty( XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES, Boolean.FALSE ); + xmlInputFactory.setProperty( XMLInputFactory.IS_NAMESPACE_AWARE, Boolean.FALSE ); Uri uri = new Uri( baseUri ); String tagName = baseUri;