mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-02 20:02:49 +08:00
fix code
This commit is contained in:
parent
ab410d2e93
commit
37dda15906
@ -11,6 +11,8 @@
|
||||
* 【extra 】 增加ValidationUtil(pr#207@Gitee)
|
||||
* 【core 】 反射调用支持传递参数的值为null(pr#1205@Github)
|
||||
* 【core 】 HexUtil增加format方法(issue#I245NF@Gitee)
|
||||
* 【poi 】 ExcelWriter增加setCurrentRowToEnd方法(issue#I24A2R@Gitee)
|
||||
* 【core 】 ExcelWriter增加setCurrentRowToEnd方法(issue#I24A2R@Gitee)
|
||||
|
||||
### Bug修复
|
||||
* 【core 】 修复DateUtil.current使用System.nanoTime的问题(issue#1198@Github)
|
||||
|
@ -782,7 +782,7 @@ public class URLUtil {
|
||||
* @since 5.3.11
|
||||
*/
|
||||
public static String getDataUriBase64(String mimeType, String data) {
|
||||
return getDataUri(mimeType, null, "BASE64", data);
|
||||
return getDataUri(mimeType, null, "base64", data);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -16,7 +16,9 @@ public class CsvReaderTest {
|
||||
public void readTest() {
|
||||
CsvReader reader = new CsvReader();
|
||||
CsvData data = reader.read(ResourceUtil.getReader("test.csv", CharsetUtil.CHARSET_UTF_8));
|
||||
Assert.assertEquals("关注\"对象\"", data.getRow(0).get(2));
|
||||
Assert.assertEquals("sss,sss", data.getRow(0).get(0));
|
||||
Assert.assertEquals("性别", data.getRow(0).get(2));
|
||||
Assert.assertEquals("关注\"对象\"", data.getRow(0).get(3));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -1 +1 @@
|
||||
姓名,"性别",关注"对象",年龄
|
||||
"sss,sss",姓名,"性别",关注"对象",年龄
|
Can't render this file because it contains an unexpected character in line 1 and column 23.
|
@ -392,6 +392,15 @@ public class ExcelWriter extends ExcelBase<ExcelWriter> {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* 定位到最后一行的后边,用于追加数据
|
||||
* @return this
|
||||
* @since 5.5.0
|
||||
*/
|
||||
public ExcelWriter setCurrentRowToEnd(){
|
||||
return setCurrentRow(getRowCount());
|
||||
}
|
||||
|
||||
/**
|
||||
* 跳过当前行
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user