Removed unnecessary getter.
This commit is contained in:
committed by
Michael Minella
parent
a5a48c6983
commit
de0b2e7f57
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user