Skip to content

Commit cfa16be

Browse files
committed
否者 -> 否则
1 parent 8729f5c commit cfa16be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/book/19-Type-Information.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ public class DynamicSupplier<T> implements Supplier<T> {
501501
14
502502
```
503503

504-
注意,这个类必须假设与它一起工作的任何类型都有一个无参构造器,否者运行时会抛出异常。编译期对该程序不会产生任何警告信息。
504+
注意,这个类必须假设与它一起工作的任何类型都有一个无参构造器,否则运行时会抛出异常。编译期对该程序不会产生任何警告信息。
505505

506506
当你将泛型语法用于 `Class` 对象时,`newInstance()` 将返回该对象的确切类型,而不仅仅只是在 `ToyTest.java` 中看到的基类 `Object`。然而,这在某种程度上有些受限:
507507

0 commit comments

Comments
 (0)