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