Removed unnecessary getter.

This commit is contained in:
Marten Deinum
2014-08-28 08:59:13 +02:00
committed by Michael Minella
parent a5a48c6983
commit de0b2e7f57

View File

@@ -142,9 +142,9 @@ public abstract class AbstractExcelItemReader<T> extends AbstractItemCountingIte
@Override
protected final void doClose() throws Exception {
doCloseWorkbook();
if (getResource() != null) {
if (this.resource != null) {
try {
InputStream is = getResource().getInputStream();
InputStream is = this.resource.getInputStream();
is.close();
} catch (IOException ioe) {
logger.warn("Exception whilst obtaining or closing the inputstream.", ioe);
@@ -160,10 +160,6 @@ public abstract class AbstractExcelItemReader<T> extends AbstractItemCountingIte
protected void doCloseWorkbook() throws Exception {
}
protected Resource getResource() {
return this.resource;
}
public void setResource(final Resource resource) {
this.resource = resource;
}