mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package cn.hutool.poi.excel;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import cn.hutool.poi.excel.style.StyleUtil;
|
||||
import org.apache.poi.ss.usermodel.BorderStyle;
|
||||
import org.apache.poi.ss.usermodel.CellStyle;
|
||||
import org.apache.poi.ss.usermodel.FillPatternType;
|
||||
@@ -11,7 +10,7 @@ import org.apache.poi.ss.usermodel.IndexedColors;
|
||||
import org.apache.poi.ss.usermodel.VerticalAlignment;
|
||||
import org.apache.poi.ss.usermodel.Workbook;
|
||||
|
||||
import cn.hutool.poi.excel.style.StyleUtil;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 样式集合,此样式集合汇集了整个工作簿的样式,用于减少样式的创建和冗余
|
||||
@@ -23,7 +22,7 @@ public class StyleSet implements Serializable{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 工作簿引用 */
|
||||
private Workbook workbook;
|
||||
private final Workbook workbook;
|
||||
/** 标题样式 */
|
||||
protected CellStyle headCellStyle;
|
||||
/** 默认样式 */
|
||||
|
@@ -45,7 +45,7 @@ public class Excel03SaxReader extends AbstractExcelSaxReader<Excel03SaxReader> i
|
||||
/**
|
||||
* 如果为公式,true表示输出公式计算后的结果值,false表示输出公式本身
|
||||
*/
|
||||
private boolean isOutputFormulaValues = true;
|
||||
private final boolean isOutputFormulaValues = true;
|
||||
|
||||
/**
|
||||
* 用于解析公式
|
||||
@@ -66,7 +66,7 @@ public class Excel03SaxReader extends AbstractExcelSaxReader<Excel03SaxReader> i
|
||||
/**
|
||||
* Sheet边界记录,此Record中可以获得Sheet名
|
||||
*/
|
||||
private List<BoundSheetRecord> boundSheetRecords = new ArrayList<>();
|
||||
private final List<BoundSheetRecord> boundSheetRecords = new ArrayList<>();
|
||||
|
||||
private boolean isOutputNextStringRecord;
|
||||
|
||||
@@ -80,7 +80,7 @@ public class Excel03SaxReader extends AbstractExcelSaxReader<Excel03SaxReader> i
|
||||
// 当前表索引
|
||||
private int curRid = -1;
|
||||
|
||||
private RowHandler rowHandler;
|
||||
private final RowHandler rowHandler;
|
||||
|
||||
/**
|
||||
* 构造
|
||||
|
@@ -57,7 +57,7 @@ public class Excel07SaxReader extends AbstractExcelSaxReader<Excel07SaxReader> i
|
||||
// 当前列
|
||||
private int curCell;
|
||||
// 上一次的内容
|
||||
private StringBuilder lastContent = new StringBuilder(64);
|
||||
private final StringBuilder lastContent = new StringBuilder(64);
|
||||
// 单元数据类型
|
||||
private CellDataType cellDataType;
|
||||
// 当前列坐标, 如A1,B5
|
||||
|
@@ -28,7 +28,7 @@ public enum PicType {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
private int value;
|
||||
private final int value;
|
||||
|
||||
/**
|
||||
* 获取图片类型对应值
|
||||
|
@@ -28,7 +28,7 @@ import java.io.OutputStream;
|
||||
*/
|
||||
public class Word07Writer implements Closeable {
|
||||
|
||||
private XWPFDocument doc;
|
||||
private final XWPFDocument doc;
|
||||
/**
|
||||
* 目标文件
|
||||
*/
|
||||
|
Reference in New Issue
Block a user