removed deprecated API calls
This commit is contained in:
@ -36,7 +36,4 @@
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<properties>
|
||||
<netbeans.hint.license>apache20</netbeans.hint.license>
|
||||
</properties>
|
||||
</project>
|
||||
@ -184,7 +184,7 @@ public class WorkbookApp {
|
||||
newCell.setCellValue(oldCell.getNumericCellValue());
|
||||
break;
|
||||
case BLANK:
|
||||
newCell.setCellType(CellType.BLANK);
|
||||
newCell.setBlank();
|
||||
break;
|
||||
case BOOLEAN:
|
||||
newCell.setCellValue(oldCell.getBooleanCellValue());
|
||||
@ -306,7 +306,11 @@ public class WorkbookApp {
|
||||
}
|
||||
|
||||
protected void autoResizeColumns(Sheet sheet) {
|
||||
int maxColumn = sheet.getRow(0).getPhysicalNumberOfCells();
|
||||
autoResizeColumns(sheet,0);
|
||||
}
|
||||
|
||||
protected void autoResizeColumns(Sheet sheet, int referenceRow) {
|
||||
int maxColumn = sheet.getRow(referenceRow).getPhysicalNumberOfCells();
|
||||
for (int currentColumn = 0; currentColumn < maxColumn; currentColumn++) {
|
||||
if (LOGGER.isTraceEnabled()) {
|
||||
LOGGER.trace("Auto resize column {}/{}", currentColumn, maxColumn);
|
||||
|
||||
Reference in New Issue
Block a user