8168681: Correct deprecation text for Class.newInstance

Reviewed-by: mchung
This commit is contained in:
Joe Darcy 2016-11-03 13:06:24 -07:00
parent 12c36f7ab7
commit 1f577b2097

View File

@ -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