7080613: java.beans.DefaultPersistenceDelegate.instantiate(..) doesn't throw NPE

Reviewed-by: alexsch
This commit is contained in:
Sergey Malenkov 2013-08-23 19:29:39 +04:00
parent df7849845e
commit a7e60f4913
2 changed files with 2 additions and 0 deletions

View File

@ -149,6 +149,7 @@ public class DefaultPersistenceDelegate extends PersistenceDelegate {
* @return An expression whose value is <code>oldInstance</code>.
*
* @throws NullPointerException if {@code out} is {@code null}
* and this value is used in the method
*
* @see #DefaultPersistenceDelegate(String[])
*/

View File

@ -162,6 +162,7 @@ public abstract class PersistenceDelegate {
* @return An expression whose value is <code>oldInstance</code>.
*
* @throws NullPointerException if {@code out} is {@code null}
* and this value is used in the method
*/
protected abstract Expression instantiate(Object oldInstance, Encoder out);