7080613: java.beans.DefaultPersistenceDelegate.instantiate(..) doesn't throw NPE
Reviewed-by: alexsch
--- 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);