Cleaned code.

This commit is contained in:
Christian P. MOMON 2016-07-26 05:40:43 +02:00
parent 4bc5a8e8c4
commit 931f1e1214

View file

@ -44,7 +44,6 @@ import fr.devinsy.util.xml.XMLTag.TagType;
*/ */
public class XMLReader public class XMLReader
{ {
private static final Logger logger = LoggerFactory.getLogger(XMLReader.class); private static final Logger logger = LoggerFactory.getLogger(XMLReader.class);
protected XMLEventReader in; protected XMLEventReader in;
@ -67,7 +66,6 @@ public class XMLReader
*/ */
public XMLReader(final File file) throws FileNotFoundException, XMLStreamException public XMLReader(final File file) throws FileNotFoundException, XMLStreamException
{ {
this.nextEvent = null; this.nextEvent = null;
XMLInputFactory factory = XMLInputFactory.newInstance(); XMLInputFactory factory = XMLInputFactory.newInstance();
this.in = factory.createXMLEventReader(new FileInputStream(file), "UTF-8"); this.in = factory.createXMLEventReader(new FileInputStream(file), "UTF-8");
@ -80,7 +78,6 @@ public class XMLReader
*/ */
public XMLReader(final InputStream source) throws XMLStreamException public XMLReader(final InputStream source) throws XMLStreamException
{ {
this.nextEvent = null; this.nextEvent = null;
XMLInputFactory factory = XMLInputFactory.newInstance(); XMLInputFactory factory = XMLInputFactory.newInstance();
this.in = factory.createXMLEventReader(source); this.in = factory.createXMLEventReader(source);
@ -93,7 +90,6 @@ public class XMLReader
*/ */
public XMLReader(final Reader source) throws XMLStreamException public XMLReader(final Reader source) throws XMLStreamException
{ {
this.nextEvent = null; this.nextEvent = null;
XMLInputFactory factory = XMLInputFactory.newInstance(); XMLInputFactory factory = XMLInputFactory.newInstance();
this.in = factory.createXMLEventReader(source); this.in = factory.createXMLEventReader(source);
@ -542,7 +538,6 @@ public class XMLReader
// //
result = readTag(); result = readTag();
//
// //
if (result == null) if (result == null)
{ {