remove a few warnings
This commit is contained in:
1 parent
3bec43fbc8
commit
6ac249968a
41 files changed
+122
-137
No files matched your search
@@ -8,7 +8,7 @@ import java.util.List;
|
||||
|
||||
public class CarpetExpressionException extends RuntimeException
|
||||
{
|
||||
public List<FunctionValue> stack;
|
||||
public final List<FunctionValue> stack;
|
||||
|
||||
public CarpetExpressionException(String message, List<FunctionValue> stack)
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ import carpet.script.value.Value;
|
||||
/* Exception thrown to terminate execution mid expression (aka return statement) */
|
||||
public class ExitStatement extends RuntimeException
|
||||
{
|
||||
public Value retval;
|
||||
public final Value retval;
|
||||
public ExitStatement(Value value)
|
||||
{
|
||||
retval = value;
|
||||
|
||||
@@ -15,8 +15,8 @@ import static carpet.script.ExpressionInspector.Expression_getName;
|
||||
/* The expression evaluators exception class. */
|
||||
public class ExpressionException extends RuntimeException
|
||||
{
|
||||
public Context context;
|
||||
public List<FunctionValue> stack = new ArrayList<>();
|
||||
public final Context context;
|
||||
public final List<FunctionValue> stack = new ArrayList<>();
|
||||
public ExpressionException(Context c, String message)
|
||||
{
|
||||
super(makeMessage(c, null, null, message));
|
||||
@@ -35,7 +35,7 @@ public class ExpressionException extends RuntimeException
|
||||
context = c;
|
||||
}
|
||||
|
||||
private static Fluff.TriFunction<Expression, Tokenizer.Token, String, List<String>> errorMaker = (expr, token, errmessage) ->
|
||||
private static final Fluff.TriFunction<Expression, Tokenizer.Token, String, List<String>> errorMaker = (expr, token, errmessage) ->
|
||||
{
|
||||
|
||||
List<String> errMsg = new ArrayList<>();
|
||||
|
||||
Reference in new issue
Block a user