Fix javadoc comments.
This commit is contained in:
@@ -11,6 +11,10 @@ import org.luaj.vm2.lib.jse.JsePlatform;
|
|||||||
* <ul><li>type-related metatables such as LuaNumber.s_metatable are shared by all threads, so are not thread-safe.
|
* <ul><li>type-related metatables such as LuaNumber.s_metatable are shared by all threads, so are not thread-safe.
|
||||||
* </li><li>creating additional threads within a Java element called by lua could result in shared access to globals.
|
* </li><li>creating additional threads within a Java element called by lua could result in shared access to globals.
|
||||||
* </li></ul>
|
* </li></ul>
|
||||||
|
*
|
||||||
|
* This can be used when all the scripts running can be trusted.
|
||||||
|
* For examples of how to sandbox scripts in protect against rogue scripts,
|
||||||
|
* see examples/jse/SampLeSandboxed.java.
|
||||||
*/
|
*/
|
||||||
public class SampleMultiThreaded {
|
public class SampleMultiThreaded {
|
||||||
|
|
||||||
|
|||||||
@@ -50,9 +50,9 @@ import org.luaj.vm2.lib.MathLib;
|
|||||||
* <p>
|
* <p>
|
||||||
* When Java Strings are used to initialize {@link LuaString} data, the UTF8 encoding is assumed.
|
* When Java Strings are used to initialize {@link LuaString} data, the UTF8 encoding is assumed.
|
||||||
* The functions
|
* The functions
|
||||||
* {@link LuaString#lengthAsUtf8(char[]),
|
* {@link #lengthAsUtf8(char[])},
|
||||||
* {@link LuaString#encodeToUtf8(char[], int, byte[], int)}, and
|
* {@link #encodeToUtf8(char[], int, byte[], int)}, and
|
||||||
* {@link LuaString#decodeAsUtf8(byte[], int, int)
|
* {@link #decodeAsUtf8(byte[], int, int)}
|
||||||
* are used to convert back and forth between UTF8 byte arrays and character arrays.
|
* are used to convert back and forth between UTF8 byte arrays and character arrays.
|
||||||
*
|
*
|
||||||
* @see LuaValue
|
* @see LuaValue
|
||||||
|
|||||||
Reference in New Issue
Block a user