changeset 20096:fbbbe389c8b1

7080613: java.beans.DefaultPersistenceDelegate.instantiate(..) doesn't throw NPE Reviewed-by: alexsch
author malenkov
date Fri, 23 Aug 2013 19:29:39 +0400
parents 619a080ff304
children a4a07c4ead5f
files jdk/src/share/classes/java/beans/DefaultPersistenceDelegate.java jdk/src/share/classes/java/beans/PersistenceDelegate.java
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/share/classes/java/beans/DefaultPersistenceDelegate.java	Thu Aug 22 21:05:11 2013 +0400
+++ b/jdk/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/jdk/src/share/classes/java/beans/PersistenceDelegate.java	Thu Aug 22 21:05:11 2013 +0400
+++ b/jdk/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);