mirror of https://github.com/apache/jclouds.git
avoid thread safety issues
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1491 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
parent
fcaa546356
commit
cc6ff3a805
|
@ -23,16 +23,16 @@
|
|||
*/
|
||||
package org.jclouds.http.commands.callables.xml.config;
|
||||
|
||||
import com.google.inject.AbstractModule;
|
||||
import com.google.inject.Provides;
|
||||
import com.google.inject.Singleton;
|
||||
import org.xml.sax.SAXException;
|
||||
import org.xml.sax.XMLReader;
|
||||
|
||||
import javax.xml.parsers.ParserConfigurationException;
|
||||
import javax.xml.parsers.SAXParser;
|
||||
import javax.xml.parsers.SAXParserFactory;
|
||||
|
||||
import org.xml.sax.SAXException;
|
||||
import org.xml.sax.XMLReader;
|
||||
|
||||
import com.google.inject.AbstractModule;
|
||||
import com.google.inject.Provides;
|
||||
|
||||
/**
|
||||
* // TODO: Adrian: Document this!
|
||||
*
|
||||
|
@ -48,7 +48,6 @@ public class SaxModule extends AbstractModule {
|
|||
}
|
||||
|
||||
@Provides
|
||||
@Singleton
|
||||
SAXParserFactory provideSAXParserFactory() {
|
||||
SAXParserFactory factory = SAXParserFactory.newInstance();
|
||||
factory.setNamespaceAware(false);
|
||||
|
|
Loading…
Reference in New Issue