Fix javadoc comments.

This commit is contained in:
James Roseborough
2015-04-15 05:07:43 +00:00
parent ef008fca5e
commit f3fb9a7fde
2 changed files with 7 additions and 3 deletions

View File

@@ -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.
* </li><li>creating additional threads within a Java element called by lua could result in shared access to globals.
* </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 {

View File

@@ -50,9 +50,9 @@ import org.luaj.vm2.lib.MathLib;
* <p>
* When Java Strings are used to initialize {@link LuaString} data, the UTF8 encoding is assumed.
* The functions
* {@link LuaString#lengthAsUtf8(char[]),
* {@link LuaString#encodeToUtf8(char[], int, byte[], int)}, and
* {@link LuaString#decodeAsUtf8(byte[], int, int)
* {@link #lengthAsUtf8(char[])},
* {@link #encodeToUtf8(char[], int, byte[], int)}, and
* {@link #decodeAsUtf8(byte[], int, int)}
* are used to convert back and forth between UTF8 byte arrays and character arrays.
*
* @see LuaValue