downgrade POI to 4.0.1 to avoid bug
https://bz.apache.org/bugzilla/show_bug.cgi?id=63845
This commit is contained in:
@ -34,6 +34,7 @@ import org.apache.poi.ss.formula.ptg.Ptg;
|
|||||||
import org.apache.poi.ss.formula.ptg.RefPtgBase;
|
import org.apache.poi.ss.formula.ptg.RefPtgBase;
|
||||||
import org.apache.poi.ss.usermodel.Cell;
|
import org.apache.poi.ss.usermodel.Cell;
|
||||||
import org.apache.poi.ss.usermodel.CellStyle;
|
import org.apache.poi.ss.usermodel.CellStyle;
|
||||||
|
import org.apache.poi.ss.usermodel.CellType;
|
||||||
import org.apache.poi.ss.usermodel.DataValidation;
|
import org.apache.poi.ss.usermodel.DataValidation;
|
||||||
import org.apache.poi.ss.usermodel.DataValidationHelper;
|
import org.apache.poi.ss.usermodel.DataValidationHelper;
|
||||||
import org.apache.poi.ss.usermodel.Row;
|
import org.apache.poi.ss.usermodel.Row;
|
||||||
@ -183,7 +184,7 @@ public class WorkbookApp {
|
|||||||
newCell.setCellValue(oldCell.getNumericCellValue());
|
newCell.setCellValue(oldCell.getNumericCellValue());
|
||||||
break;
|
break;
|
||||||
case BLANK:
|
case BLANK:
|
||||||
newCell.setBlank();
|
newCell.setCellType(CellType.BLANK);
|
||||||
break;
|
break;
|
||||||
case BOOLEAN:
|
case BOOLEAN:
|
||||||
newCell.setCellValue(oldCell.getBooleanCellValue());
|
newCell.setCellValue(oldCell.getBooleanCellValue());
|
||||||
|
|||||||
3
pom.xml
3
pom.xml
@ -220,7 +220,8 @@ limitations under the License.
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.poi</groupId>
|
<groupId>org.apache.poi</groupId>
|
||||||
<artifactId>poi-ooxml</artifactId>
|
<artifactId>poi-ooxml</artifactId>
|
||||||
<version>4.1.0</version>
|
<version>4.0.1</version>
|
||||||
|
<!-- do not upgrade to 4.1.0, see bug https://bz.apache.org/bugzilla/show_bug.cgi?id=63845 -->
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.inversoft</groupId>
|
<groupId>com.inversoft</groupId>
|
||||||
|
|||||||
Reference in New Issue
Block a user