Mercurial > hg > openjdk > jdk8 > jdk
changeset 8082:f983fd18dd81
7080613: java.beans.DefaultPersistenceDelegate.instantiate(..) doesn't throw NPE
Reviewed-by: alexsch
author | malenkov |
---|---|
date | Fri, 23 Aug 2013 19:29:39 +0400 |
parents | b71f112dab2a |
children | 22ef5187a3e6 |
files | src/share/classes/java/beans/DefaultPersistenceDelegate.java src/share/classes/java/beans/PersistenceDelegate.java |
diffstat | 2 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/classes/java/beans/DefaultPersistenceDelegate.java Thu Aug 22 21:05:11 2013 +0400 +++ b/src/share/classes/java/beans/DefaultPersistenceDelegate.java Fri Aug 23 19:29:39 2013 +0400 @@ -149,6 +149,7 @@ * @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[]) */
--- a/src/share/classes/java/beans/PersistenceDelegate.java Thu Aug 22 21:05:11 2013 +0400 +++ b/src/share/classes/java/beans/PersistenceDelegate.java Fri Aug 23 19:29:39 2013 +0400 @@ -162,6 +162,7 @@ * @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);