Author: julien_viet
Date: 2011-08-13 15:30:27 -0400 (Sat, 13 Aug 2011)
New Revision: 7072
Modified:
components/pc/trunk/pom.xml
components/pc/trunk/portlet/src/main/java/org/gatein/pc/portlet/impl/deployment/staxnav/PortletApplicationMetaDataBuilder.java
Log:
GTNPC-68 : Update staxnav to 0.9.5 version
Modified: components/pc/trunk/pom.xml
===================================================================
--- components/pc/trunk/pom.xml 2011-08-13 12:40:42 UTC (rev 7071)
+++ components/pc/trunk/pom.xml 2011-08-13 19:30:27 UTC (rev 7072)
@@ -183,7 +183,7 @@
<dependency>
<groupId>org.staxnav</groupId>
<artifactId>staxnav.core</artifactId>
- <version>0.9.3</version>
+ <version>0.9.5</version>
</dependency>
<dependency>
Modified:
components/pc/trunk/portlet/src/main/java/org/gatein/pc/portlet/impl/deployment/staxnav/PortletApplicationMetaDataBuilder.java
===================================================================
---
components/pc/trunk/portlet/src/main/java/org/gatein/pc/portlet/impl/deployment/staxnav/PortletApplicationMetaDataBuilder.java 2011-08-13
12:40:42 UTC (rev 7071)
+++
components/pc/trunk/portlet/src/main/java/org/gatein/pc/portlet/impl/deployment/staxnav/PortletApplicationMetaDataBuilder.java 2011-08-13
19:30:27 UTC (rev 7072)
@@ -54,7 +54,7 @@
import org.staxnav.Naming;
import org.staxnav.StaxNavException;
import org.staxnav.StaxNavigator;
-import org.staxnav.StaxNavigatorImpl;
+import org.staxnav.StaxNavigatorFactory;
import org.staxnav.ValueType;
import javax.xml.namespace.QName;
@@ -189,7 +189,7 @@
XMLInputFactory factory = XMLInputFactory.newInstance();
factory.setProperty("javax.xml.stream.isCoalescing", true);
XMLStreamReader stream = factory.createXMLStreamReader(is);
- StaxNavigator<Element> nav = new StaxNavigatorImpl<Element>(new
Naming.Enumerated.Simple<Element>(Element.class, null), stream);
+ StaxNavigator<Element> nav = StaxNavigatorFactory.create(new
Naming.Enumerated.Simple<Element>(Element.class, null), stream);
nav.setTrimContent(true);