This commit is contained in:
Looly 2022-08-05 16:22:00 +08:00
parent d8e63ab2f0
commit 977c5a998a
2 changed files with 1 additions and 2 deletions

View File

@ -717,10 +717,8 @@ public class FastStream<T> implements Stream<T>, Iterable<T> {
* @param <A> 给定的数组类型
* @return 包含此流元素的指定的数组
* @throws ArrayStoreException 如果元素转换失败例如不是该元素类型及其父类则抛出该异常
* <p>
* 例如以下代码编译正常但运行时会抛出 {@link ArrayStoreException}
* <pre>{@code String[] strings = Stream.<Integer>builder().add(1).build().toArray(String[]::new); }</pre>
* </p>
*/
@Override
public <A> A[] toArray(IntFunction<A[]> generator) {

View File

@ -140,4 +140,5 @@ public class DateTimeTest {
final String a = "2021-09-27 00:00:99";
new DateTime(a, DatePattern.NORM_DATETIME_FORMAT, false);
}
}