8168681: Correct deprecation text for Class.newInstance
Reviewed-by: mchung
This commit is contained in:
parent
12c36f7ab7
commit
1f577b2097
@ -485,7 +485,7 @@ public final class Class<T> implements java.io.Serializable,
|
||||
* can be replaced by
|
||||
*
|
||||
* <pre>{@code
|
||||
* clazz.getConstructor().newInstance()
|
||||
* clazz.getDeclaredConstructor().newInstance()
|
||||
* }</pre>
|
||||
*
|
||||
* The latter sequence of calls is inferred to be able to throw
|
||||
|
Loading…
x
Reference in New Issue
Block a user