@@ -1105,49 +1105,22 @@ public ExcelWriter writeRow(Iterable<?> rowData) {
11051105 * @since 5.1.4
11061106 */
11071107public ExcelWriter writeCellValue (String locationRef , Object value ) {
1108- return writeCellValue (locationRef , value , false );
1109- }
1110-
1111- /**
1112- * 给指定单元格赋值,使用默认单元格样式
1113- *
1114- * @param locationRef 单元格地址标识符,例如A11,B5
1115- * @param value 值
1116- * @param isHeader 是否为Header
1117- * @return this
1118- * @since 5.1.4
1119- */
1120- public ExcelWriter writeCellValue (String locationRef , Object value , boolean isHeader ) {
11211108final CellLocation cellLocation = ExcelUtil .toLocation (locationRef );
1122- return writeCellValue (cellLocation .getX (), cellLocation .getY (), value , isHeader );
1109+ return writeCellValue (cellLocation .getX (), cellLocation .getY (), value );
11231110}
11241111
11251112/**
11261113 * 给指定单元格赋值,使用默认单元格样式
11271114 *
1128- * @param x X坐标,从0计数,即列号
1129- * @param y Y坐标,从0计数,即行号
1130- * @param value 值
1115+ * @param x X坐标,从0计数,即列号
1116+ * @param y Y坐标,从0计数,即行号
1117+ * @param value 值
11311118 * @return this
11321119 * @since 4.0.2
11331120 */
11341121public ExcelWriter writeCellValue (int x , int y , Object value ) {
1135- return writeCellValue (x , y , value , false );
1136- }
1137-
1138- /**
1139- * 给指定单元格赋值,使用默认单元格样式
1140- *
1141- * @param x X坐标,从0计数,即列号
1142- * @param y Y坐标,从0计数,即行号
1143- * @param value 值
1144- * @param isHeader 是否为Header
1145- * @return this
1146- * @since 4.0.2
1147- */
1148- public ExcelWriter writeCellValue (int x , int y , Object value , boolean isHeader ) {
11491122final Cell cell = getOrCreateCell (x , y );
1150- CellUtil .setCellValue (cell , value , this .styleSet , isHeader );
1123+ CellUtil .setCellValue (cell , value , this .styleSet , false );
11511124return this ;
11521125}
11531126
0 commit comments