mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2026-10-30 11:14:27 +00:00
Add @Nullable and @NonNull annotations
This commit is contained in:
1 parent
9d1872c948
commit
dc5517303f
128 files changed
+818
-381
No files matched your search
@@ -6,6 +6,8 @@
|
||||
|
||||
package dan200.computercraft.api.lua;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
/**
|
||||
* An exception representing an error in Lua, like that raised by the {@code error()} function.
|
||||
*/
|
||||
@@ -19,12 +21,12 @@ public class LuaException extends Exception
|
||||
this( "error", 1 );
|
||||
}
|
||||
|
||||
public LuaException( String message )
|
||||
public LuaException( @Nullable String message )
|
||||
{
|
||||
this( message, 1 );
|
||||
}
|
||||
|
||||
public LuaException( String message, int level )
|
||||
public LuaException( @Nullable String message, int level )
|
||||
{
|
||||
super( message );
|
||||
m_level = level;
|
||||
|
||||
Reference in new issue
Block a user