changeset 11909:eb8ed6284cc8

8068587: ScriptEngineFactory.getParameter() should specify NPE for a null key Reviewed-by: alanb, lagergren
author sundar
date Tue, 10 Feb 2015 14:44:33 +0530
parents 30f5fa716218
children 83ddf1c04f4d
files src/java.scripting/share/classes/javax/script/ScriptEngineFactory.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.scripting/share/classes/javax/script/ScriptEngineFactory.java	Mon Feb 09 17:49:26 2015 -0800
+++ b/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);