7187144: JavaDoc for ScriptEngineFactory.getProgram() contains an error
Reviewed-by: mcimadamore, jlaskey, hannesw, attila
This commit is contained in:
parent
841458107b
commit
5a354fd6c7
@ -196,18 +196,17 @@ public interface ScriptEngineFactory {
|
||||
|
||||
|
||||
/**
|
||||
* Returns A valid scripting language executable progam with given statements.
|
||||
* Returns a valid scripting language executable progam with given statements.
|
||||
* For instance an implementation for a PHP engine might be:
|
||||
* <p>
|
||||
* <pre>{@code
|
||||
* public String getProgram(String... statements) {
|
||||
* $retval = "<?\n";
|
||||
* String retval = "<?\n";
|
||||
* int len = statements.length;
|
||||
* for (int i = 0; i < len; i++) {
|
||||
* $retval += statements[i] + ";\n";
|
||||
* retval += statements[i] + ";\n";
|
||||
* }
|
||||
* $retval += "?>";
|
||||
*
|
||||
* return retval += "?>";
|
||||
* }
|
||||
* }</pre>
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user