mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-08 16:19:48 +00:00
Polishing
This commit is contained in:
+2
-4
@@ -26,7 +26,6 @@ import org.apache.poi.hssf.usermodel.HSSFCell;
|
||||
import org.apache.poi.hssf.usermodel.HSSFRow;
|
||||
import org.apache.poi.hssf.usermodel.HSSFSheet;
|
||||
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
|
||||
|
||||
import org.springframework.core.io.Resource;
|
||||
import org.springframework.core.io.support.LocalizedResourceHelper;
|
||||
@@ -172,8 +171,7 @@ public abstract class AbstractExcelView extends AbstractView {
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Loading Excel workbook from " + inputFile);
|
||||
}
|
||||
POIFSFileSystem fs = new POIFSFileSystem(inputFile.getInputStream());
|
||||
return new HSSFWorkbook(fs);
|
||||
return new HSSFWorkbook(inputFile.getInputStream());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -194,7 +192,7 @@ public abstract class AbstractExcelView extends AbstractView {
|
||||
* <p>Creates the row and the cell if they still doesn't already exist.
|
||||
* Thus, the column can be passed as an int, the method making the needed downcasts.
|
||||
* @param sheet a sheet object. The first sheet is usually obtained by workbook.getSheetAt(0)
|
||||
* @param row thr row number
|
||||
* @param row the row number
|
||||
* @param col the column number
|
||||
* @return the HSSFCell
|
||||
*/
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -27,7 +27,7 @@ import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
|
||||
/**
|
||||
* Jasper Reports view class that allows for the actual rendering format
|
||||
* JasperReports view class that allows for the actual rendering format
|
||||
* to be specified at runtime using a parameter contained in the model.
|
||||
*
|
||||
* <p>This view works on the concept of a format key and a mapping key.
|
||||
|
||||
Reference in New Issue
Block a user