j-easy/easy-batch

XmlRecordReader should close the input stream

fmbenhassine opened this issue · 0 comments

The call to xmlEventReader.close() in org.jeasy.batch.xml.XmlRecordReader#close does not close the underlying input stream (See https://docs.oracle.com/javase/8/docs/api/javax/xml/stream/XMLEventReader.html#close--).

So the XmlRecordReader should close the input stream to prevent any resource leak.