diff --git a/jdk/src/java.scripting/share/classes/javax/script/Compilable.java b/jdk/src/java.scripting/share/classes/javax/script/Compilable.java index c4620cb9831..d355167cc49 100644 --- a/jdk/src/java.scripting/share/classes/javax/script/Compilable.java +++ b/jdk/src/java.scripting/share/classes/javax/script/Compilable.java @@ -42,7 +42,7 @@ public interface Compilable { * * @param script The source of the script, represented as a String. * - * @return An subclass of CompiledScript to be executed later using one + * @return An instance of a subclass of CompiledScript to be executed later using one * of the eval methods of CompiledScript. * * @throws ScriptException if compilation fails. @@ -61,7 +61,7 @@ public interface Compilable { * * @param script The reader from which the script source is obtained. * - * @return An implementation of CompiledScript to be executed + * @return An instance of a subclass of CompiledScript to be executed * later using one of its eval methods of CompiledScript. * * @throws ScriptException if compilation fails.