mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix comment
This commit is contained in:
@@ -289,11 +289,15 @@ public class ExcelBase<T extends ExcelBase<T>> implements Closeable {
|
||||
* </pre>
|
||||
*
|
||||
* @param rowNum 行号
|
||||
* @return 列数
|
||||
* @return 列数,-1表示获取失败
|
||||
*/
|
||||
public int getColumnCount(int rowNum) {
|
||||
// getLastCellNum方法返回序号+1的值
|
||||
return this.sheet.getRow(rowNum).getLastCellNum();
|
||||
final Row row = this.sheet.getRow(rowNum);
|
||||
if(null != row) {
|
||||
// getLastCellNum方法返回序号+1的值
|
||||
return row.getLastCellNum();
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user