7080613: java.beans.DefaultPersistenceDelegate.instantiate(..) doesn't throw NPE
authormalenkov
Fri, 23 Aug 2013 19:29:39 +0400
changeset 20096 fbbbe389c8b1
parent 20095 619a080ff304
child 20097 a4a07c4ead5f
7080613: java.beans.DefaultPersistenceDelegate.instantiate(..) doesn't throw NPE Reviewed-by: alexsch
jdk/src/share/classes/java/beans/DefaultPersistenceDelegate.java
jdk/src/share/classes/java/beans/PersistenceDelegate.java
--- 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);