未验证 提交 50ff4db8 编写于 作者: 庄家钜's avatar 庄家钜 提交者: GitHub

Merge pull request #1974 from lethal233/comment_typo_fix

fix typo in comments
...@@ -32,7 +32,7 @@ public @interface ExcelProperty { ...@@ -32,7 +32,7 @@ public @interface ExcelProperty {
/** /**
* Index of column * Index of column
* *
* Read or write it on the index of column,If it's equal to -1, it's sorted by Java class. * Read or write it on the index of column, If it's equal to -1, it's sorted by Java class.
* *
* priority: index > order > default sort * priority: index > order > default sort
* *
......
...@@ -52,7 +52,7 @@ public @interface ContentFontStyle { ...@@ -52,7 +52,7 @@ public @interface ContentFontStyle {
short color() default -1; short color() default -1;
/** /**
* Set normal,super or subscript. * Set normal, super or subscript.
* *
* @see Font#SS_NONE * @see Font#SS_NONE
* @see Font#SS_SUPER * @see Font#SS_SUPER
......
...@@ -52,7 +52,7 @@ public @interface HeadFontStyle { ...@@ -52,7 +52,7 @@ public @interface HeadFontStyle {
short color() default -1; short color() default -1;
/** /**
* Set normal,super or subscript. * Set normal, super or subscript.
* *
* @see Font#SS_NONE * @see Font#SS_NONE
* @see Font#SS_SUPER * @see Font#SS_SUPER
......
...@@ -20,19 +20,19 @@ public class CellExtra extends AbstractCell { ...@@ -20,19 +20,19 @@ public class CellExtra extends AbstractCell {
*/ */
private String text; private String text;
/** /**
* First row index,if this object is an interval * First row index, if this object is an interval
*/ */
private Integer firstRowIndex; private Integer firstRowIndex;
/** /**
* Last row index,if this object is an interval * Last row index, if this object is an interval
*/ */
private Integer lastRowIndex; private Integer lastRowIndex;
/** /**
* First column index,if this object is an interval * First column index, if this object is an interval
*/ */
private Integer firstColumnIndex; private Integer firstColumnIndex;
/** /**
* Last column index,if this object is an interval * Last column index, if this object is an interval
*/ */
private Integer lastColumnIndex; private Integer lastColumnIndex;
......
...@@ -40,7 +40,7 @@ public class FontProperty { ...@@ -40,7 +40,7 @@ public class FontProperty {
*/ */
private Short color; private Short color;
/** /**
* Set normal,super or subscript. * Set normal, super or subscript.
* *
* @see Font#SS_NONE * @see Font#SS_NONE
* @see Font#SS_SUPER * @see Font#SS_SUPER
......
...@@ -41,7 +41,7 @@ public class ExcelReaderBuilder extends AbstractExcelReaderParameterBuilder<Exce ...@@ -41,7 +41,7 @@ public class ExcelReaderBuilder extends AbstractExcelReaderParameterBuilder<Exce
/** /**
* Read InputStream * Read InputStream
* <p> * <p>
* If 'inputStream' and 'file' all not empty,file first * If 'inputStream' and 'file' all not empty, file first
*/ */
public ExcelReaderBuilder file(InputStream inputStream) { public ExcelReaderBuilder file(InputStream inputStream) {
readWorkbook.setInputStream(inputStream); readWorkbook.setInputStream(inputStream);
...@@ -51,7 +51,7 @@ public class ExcelReaderBuilder extends AbstractExcelReaderParameterBuilder<Exce ...@@ -51,7 +51,7 @@ public class ExcelReaderBuilder extends AbstractExcelReaderParameterBuilder<Exce
/** /**
* Read file * Read file
* <p> * <p>
* If 'inputStream' and 'file' all not empty,file first * If 'inputStream' and 'file' all not empty, file first
*/ */
public ExcelReaderBuilder file(File file) { public ExcelReaderBuilder file(File file) {
readWorkbook.setFile(file); readWorkbook.setFile(file);
...@@ -61,7 +61,7 @@ public class ExcelReaderBuilder extends AbstractExcelReaderParameterBuilder<Exce ...@@ -61,7 +61,7 @@ public class ExcelReaderBuilder extends AbstractExcelReaderParameterBuilder<Exce
/** /**
* Read file * Read file
* <p> * <p>
* If 'inputStream' and 'file' all not empty,file first * If 'inputStream' and 'file' all not empty, file first
*/ */
public ExcelReaderBuilder file(String pathName) { public ExcelReaderBuilder file(String pathName) {
return file(new File(pathName)); return file(new File(pathName));
...@@ -70,7 +70,7 @@ public class ExcelReaderBuilder extends AbstractExcelReaderParameterBuilder<Exce ...@@ -70,7 +70,7 @@ public class ExcelReaderBuilder extends AbstractExcelReaderParameterBuilder<Exce
/** /**
* Mandatory use 'inputStream' .Default is false. * Mandatory use 'inputStream' .Default is false.
* <p> * <p>
* if false,Will transfer 'inputStream' to temporary files to improve efficiency * if false, Will transfer 'inputStream' to temporary files to improve efficiency
*/ */
public ExcelReaderBuilder mandatoryUseInputStream(Boolean mandatoryUseInputStream) { public ExcelReaderBuilder mandatoryUseInputStream(Boolean mandatoryUseInputStream) {
readWorkbook.setMandatoryUseInputStream(mandatoryUseInputStream); readWorkbook.setMandatoryUseInputStream(mandatoryUseInputStream);
......
...@@ -27,19 +27,19 @@ public class ReadWorkbook extends ReadBasicParameter { ...@@ -27,19 +27,19 @@ public class ReadWorkbook extends ReadBasicParameter {
/** /**
* Read InputStream * Read InputStream
* <p> * <p>
* If 'inputStream' and 'file' all not empty,file first * If 'inputStream' and 'file' all not empty, file first
*/ */
private InputStream inputStream; private InputStream inputStream;
/** /**
* Read file * Read file
* <p> * <p>
* If 'inputStream' and 'file' all not empty,file first * If 'inputStream' and 'file' all not empty, file first
*/ */
private File file; private File file;
/** /**
* Mandatory use 'inputStream' .Default is false. * Mandatory use 'inputStream' .Default is false.
* <p> * <p>
* if false,Will transfer 'inputStream' to temporary files to improve efficiency * if false, Will transfer 'inputStream' to temporary files to improve efficiency
*/ */
private Boolean mandatoryUseInputStream; private Boolean mandatoryUseInputStream;
/** /**
......
...@@ -33,19 +33,19 @@ public class ReadWorkbookHolder extends AbstractReadHolder { ...@@ -33,19 +33,19 @@ public class ReadWorkbookHolder extends AbstractReadHolder {
/** /**
* Read InputStream * Read InputStream
* <p> * <p>
* If 'inputStream' and 'file' all not empty,file first * If 'inputStream' and 'file' all not empty, file first
*/ */
private InputStream inputStream; private InputStream inputStream;
/** /**
* Read file * Read file
* <p> * <p>
* If 'inputStream' and 'file' all not empty,file first * If 'inputStream' and 'file' all not empty, file first
*/ */
private File file; private File file;
/** /**
* Mandatory use 'inputStream' .Default is false. * Mandatory use 'inputStream' .Default is false.
* <p> * <p>
* if false,Will transfer 'inputStream' to temporary files to improve efficiency * if false, Will transfer 'inputStream' to temporary files to improve efficiency
*/ */
private Boolean mandatoryUseInputStream; private Boolean mandatoryUseInputStream;
/** /**
......
...@@ -49,7 +49,7 @@ public class ExcelWriterBuilder extends AbstractExcelWriterParameterBuilder<Exce ...@@ -49,7 +49,7 @@ public class ExcelWriterBuilder extends AbstractExcelWriterParameterBuilder<Exce
} }
/** /**
* Write excel in memory. Default false,the cache file is created and finally written to excel. * Write excel in memory. Default false, the cache file is created and finally written to excel.
* <p> * <p>
* Comment and RichTextString are only supported in memory mode. * Comment and RichTextString are only supported in memory mode.
*/ */
......
...@@ -117,12 +117,12 @@ public abstract class AbstractExcelWriteExecutor implements ExcelWriteExecutor { ...@@ -117,12 +117,12 @@ public abstract class AbstractExcelWriteExecutor implements ExcelWriteExecutor {
} catch (Exception e) { } catch (Exception e) {
throw new ExcelDataConvertException(cell.getRow().getRowNum(), cell.getColumnIndex(), throw new ExcelDataConvertException(cell.getRow().getRowNum(), cell.getColumnIndex(),
new CellData(CellDataTypeEnum.EMPTY), excelContentProperty, new CellData(CellDataTypeEnum.EMPTY), excelContentProperty,
"Convert data:" + value + " error,at row:" + cell.getRow().getRowNum(), e); "Convert data:" + value + " error, at row:" + cell.getRow().getRowNum(), e);
} }
if (cellData == null || cellData.getType() == null) { if (cellData == null || cellData.getType() == null) {
throw new ExcelDataConvertException(cell.getRow().getRowNum(), cell.getColumnIndex(), throw new ExcelDataConvertException(cell.getRow().getRowNum(), cell.getColumnIndex(),
new CellData(CellDataTypeEnum.EMPTY), excelContentProperty, new CellData(CellDataTypeEnum.EMPTY), excelContentProperty,
"Convert data:" + value + " return null,at row:" + cell.getRow().getRowNum()); "Convert data:" + value + " return null, at row:" + cell.getRow().getRowNum());
} }
return cellData; return cellData;
} }
......
...@@ -48,7 +48,7 @@ public class ExcelWriteAddExecutor extends AbstractExcelWriteExecutor { ...@@ -48,7 +48,7 @@ public class ExcelWriteAddExecutor extends AbstractExcelWriteExecutor {
if (writeSheetHolder.isNew() && !writeSheetHolder.getExcelWriteHeadProperty().hasHead()) { if (writeSheetHolder.isNew() && !writeSheetHolder.getExcelWriteHeadProperty().hasHead()) {
newRowIndex += writeContext.currentWriteHolder().relativeHeadRowIndex(); newRowIndex += writeContext.currentWriteHolder().relativeHeadRowIndex();
} }
// BeanMap is out of order,so use sortedAllFiledMap // BeanMap is out of order, so use sortedAllFiledMap
Map<Integer, Field> sortedAllFiledMap = new TreeMap<Integer, Field>(); Map<Integer, Field> sortedAllFiledMap = new TreeMap<Integer, Field>();
int relativeRowIndex = 0; int relativeRowIndex = 0;
for (Object oneRowData : data) { for (Object oneRowData : data) {
......
...@@ -20,26 +20,26 @@ public class WriteWorkbook extends WriteBasicParameter { ...@@ -20,26 +20,26 @@ public class WriteWorkbook extends WriteBasicParameter {
/** /**
* Final output file * Final output file
* <p> * <p>
* If 'outputStream' and 'file' all not empty,file first * If 'outputStream' and 'file' all not empty, file first
*/ */
private File file; private File file;
/** /**
* Final output stream * Final output stream
* <p> * <p>
* If 'outputStream' and 'file' all not empty,file first * If 'outputStream' and 'file' all not empty, file first
*/ */
private OutputStream outputStream; private OutputStream outputStream;
/** /**
* Template input stream * Template input stream
* <p> * <p>
* If 'inputStream' and 'file' all not empty,file first * If 'inputStream' and 'file' all not empty, file first
*/ */
private InputStream templateInputStream; private InputStream templateInputStream;
/** /**
* Template file * Template file
* <p> * <p>
* If 'inputStream' and 'file' all not empty,file first * If 'inputStream' and 'file' all not empty, file first
*/ */
private File templateFile; private File templateFile;
/** /**
...@@ -58,7 +58,7 @@ public class WriteWorkbook extends WriteBasicParameter { ...@@ -58,7 +58,7 @@ public class WriteWorkbook extends WriteBasicParameter {
*/ */
private String password; private String password;
/** /**
* Write excel in memory. Default false,the cache file is created and finally written to excel. * Write excel in memory. Default false, the cache file is created and finally written to excel.
* <p> * <p>
* Comment and RichTextString are only supported in memory mode. * Comment and RichTextString are only supported in memory mode.
*/ */
......
...@@ -148,12 +148,12 @@ public class WriteSheetHolder extends AbstractWriteHolder { ...@@ -148,12 +148,12 @@ public class WriteSheetHolder extends AbstractWriteHolder {
} }
/** /**
* Get the last line of index,you have to make sure that the data is written next * Get the last line of index, you have to make sure that the data is written next
* *
* @return * @return
*/ */
public int getNewRowIndexAndStartDoWrite() { public int getNewRowIndexAndStartDoWrite() {
// 'getLastRowNum' doesn't matter if it has one or zero,is's zero // 'getLastRowNum' doesn't matter if it has one or zero, it's zero
int newRowIndex = 0; int newRowIndex = 0;
switch (writeLastRowTypeEnum) { switch (writeLastRowTypeEnum) {
case TEMPLATE_EMPTY: case TEMPLATE_EMPTY:
......
...@@ -52,7 +52,7 @@ public class WriteWorkbookHolder extends AbstractWriteHolder { ...@@ -52,7 +52,7 @@ public class WriteWorkbookHolder extends AbstractWriteHolder {
/** /**
* Final output file * Final output file
* <p> * <p>
* If 'outputStream' and 'file' all not empty,file first * If 'outputStream' and 'file' all not empty, file first
*/ */
private File file; private File file;
/** /**
...@@ -62,13 +62,13 @@ public class WriteWorkbookHolder extends AbstractWriteHolder { ...@@ -62,13 +62,13 @@ public class WriteWorkbookHolder extends AbstractWriteHolder {
/** /**
* Template input stream * Template input stream
* <p> * <p>
* If 'inputStream' and 'file' all not empty,file first * If 'inputStream' and 'file' all not empty, file first
*/ */
private InputStream templateInputStream; private InputStream templateInputStream;
/** /**
* Template file * Template file
* <p> * <p>
* If 'inputStream' and 'file' all not empty,file first * If 'inputStream' and 'file' all not empty, file first
*/ */
private File templateFile; private File templateFile;
/** /**
...@@ -102,7 +102,7 @@ public class WriteWorkbookHolder extends AbstractWriteHolder { ...@@ -102,7 +102,7 @@ public class WriteWorkbookHolder extends AbstractWriteHolder {
*/ */
private String password; private String password;
/** /**
* Write excel in memory. Default false,the cache file is created and finally written to excel. * Write excel in memory. Default false, the cache file is created and finally written to excel.
* <p> * <p>
* Comment and RichTextString are only supported in memory mode. * Comment and RichTextString are only supported in memory mode.
*/ */
......
...@@ -37,7 +37,7 @@ public class WriteFont { ...@@ -37,7 +37,7 @@ public class WriteFont {
*/ */
private Short color; private Short color;
/** /**
* Set normal,super or subscript. * Set normal, super or subscript.
* *
* @see Font#SS_NONE * @see Font#SS_NONE
* @see Font#SS_SUPER * @see Font#SS_SUPER
......
...@@ -33,7 +33,7 @@ public abstract class AbstractHeadColumnWidthStyleStrategy extends AbstractColum ...@@ -33,7 +33,7 @@ public abstract class AbstractHeadColumnWidthStyleStrategy extends AbstractColum
* Returns the column width corresponding to each column head. * Returns the column width corresponding to each column head.
* *
* <p> * <p>
* if return null,ignore * if return null, ignore
* *
* @param head * @param head
* Nullable. * Nullable.
......
...@@ -58,7 +58,7 @@ public class CompatibilityDataTest { ...@@ -58,7 +58,7 @@ public class CompatibilityDataTest {
generateParam.setOutputStream(out); generateParam.setOutputStream(out);
generateParam.setClazz(null); generateParam.setClazz(null);
ExcelWriter writer = new ExcelWriter(generateParam); ExcelWriter writer = new ExcelWriter(generateParam);
// sheet1 width,string head,string data // sheet1 width, string head, string data
Sheet sheet1 = new Sheet(1, 3); Sheet sheet1 = new Sheet(1, 3);
sheet1.setSheetName("第一个sheet"); sheet1.setSheetName("第一个sheet");
Map columnWidth = new HashMap(); Map columnWidth = new HashMap();
...@@ -68,7 +68,7 @@ public class CompatibilityDataTest { ...@@ -68,7 +68,7 @@ public class CompatibilityDataTest {
sheet1.setHead(head()); sheet1.setHead(head());
writer.write1(listData(), sheet1); writer.write1(listData(), sheet1);
// sheet2 style,class head // sheet2 style, class head
Sheet sheet2 = new Sheet(2, 3, CompatibilityData.class, "第二个sheet", null); Sheet sheet2 = new Sheet(2, 3, CompatibilityData.class, "第二个sheet", null);
sheet2.setStartRow(5); sheet2.setStartRow(5);
sheet2.setTableStyle(style()); sheet2.setTableStyle(style());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册