Author: shawkins
Date: 2011-12-22 13:32:16 -0500 (Thu, 22 Dec 2011)
New Revision: 3758
Modified:
branches/7.6.x/common-core/src/main/java/org/teiid/core/types/basic/StringToSQLXMLTransform.java
Log:
TEIID-1824 minimizing factory creation
Modified:
branches/7.6.x/common-core/src/main/java/org/teiid/core/types/basic/StringToSQLXMLTransform.java
===================================================================
---
branches/7.6.x/common-core/src/main/java/org/teiid/core/types/basic/StringToSQLXMLTransform.java 2011-12-22
18:31:53 UTC (rev 3757)
+++
branches/7.6.x/common-core/src/main/java/org/teiid/core/types/basic/StringToSQLXMLTransform.java 2011-12-22
18:32:16 UTC (rev 3758)
@@ -60,7 +60,7 @@
public static Type isXml(Reader reader) throws TransformationException {
Type type = Type.ELEMENT;
- XMLInputFactory inputFactory = XMLInputFactory.newInstance();
+ XMLInputFactory inputFactory = XMLType.getXmlInputFactory();
try{
XMLStreamReader xmlReader = inputFactory.createXMLStreamReader(reader);
int event = xmlReader.getEventType();
Show replies by date