8068587: ScriptEngineFactory.getParameter() should specify NPE for a null key
authorsundar
Tue, 10 Feb 2015 14:44:33 +0530
changeset 28854 fc7d9854bad1
parent 28853 29df6c77d2b7
child 28855 fd65ec779433
8068587: ScriptEngineFactory.getParameter() should specify NPE for a null key Reviewed-by: alanb, lagergren
jdk/src/java.scripting/share/classes/javax/script/ScriptEngineFactory.java
--- a/jdk/src/java.scripting/share/classes/javax/script/ScriptEngineFactory.java	Mon Feb 09 17:49:26 2015 -0800
+++ b/jdk/src/java.scripting/share/classes/javax/script/ScriptEngineFactory.java	Tue Feb 10 14:44:33 2015 +0530
@@ -138,6 +138,7 @@
      * @return The value for the given parameter. Returns <code>null</code> if no
      * value is assigned to the key.
      *
+     * @throws NullPointerException if the key is null.
      */
     public Object getParameter(String key);