@@ -18,15 +18,15 @@ public class ExpressionEntryData<T> extends KeyValueEntryData<Expression<? exten
18
18
19
19
private static final Message M_IS = new Message ("is" );
20
20
21
- private final Class <T >[] returnTypes ;
21
+ private final Class <? extends T >[] returnTypes ;
22
22
23
23
private final int flags ;
24
24
25
25
/**
26
26
* @param returnType The expected return type of the matched expression.
27
27
*/
28
28
public ExpressionEntryData (
29
- String key , @ Nullable Expression <T > defaultValue , boolean optional , Class <T > returnType
29
+ String key , @ Nullable Expression <? extends T > defaultValue , boolean optional , Class <? extends T > returnType
30
30
) {
31
31
this (key , defaultValue , optional , SkriptParser .ALL_FLAGS , returnType );
32
32
}
@@ -37,7 +37,7 @@ public ExpressionEntryData(
37
37
* javadoc for more details.
38
38
*/
39
39
public ExpressionEntryData (
40
- String key , @ Nullable Expression <T > defaultValue , boolean optional , Class <T > returnType , int flags
40
+ String key , @ Nullable Expression <? extends T > defaultValue , boolean optional , Class <? extends T > returnType , int flags
41
41
) {
42
42
this (key , defaultValue , optional , flags , returnType );
43
43
}
@@ -47,7 +47,7 @@ public ExpressionEntryData(
47
47
*/
48
48
@ SafeVarargs
49
49
public ExpressionEntryData (
50
- String key , @ Nullable Expression <T > defaultValue , boolean optional , Class <T >... returnTypes
50
+ String key , @ Nullable Expression <? extends T > defaultValue , boolean optional , Class <? extends T >... returnTypes
51
51
) {
52
52
this (key , defaultValue , optional , SkriptParser .ALL_FLAGS , returnTypes );
53
53
}
@@ -59,7 +59,7 @@ public ExpressionEntryData(
59
59
*/
60
60
@ SafeVarargs
61
61
public ExpressionEntryData (
62
- String key , @ Nullable Expression <T > defaultValue , boolean optional , int flags , Class <T >... returnTypes
62
+ String key , @ Nullable Expression <? extends T > defaultValue , boolean optional , int flags , Class <? extends T >... returnTypes
63
63
) {
64
64
super (key , defaultValue , optional );
65
65
this .returnTypes = returnTypes ;
@@ -68,7 +68,6 @@ public ExpressionEntryData(
68
68
69
69
@ Override
70
70
@ Nullable
71
- @ SuppressWarnings ("unchecked" )
72
71
protected Expression <? extends T > getValue (String value ) {
73
72
Expression <? extends T > expression ;
74
73
try (ParseLogHandler log = new ParseLogHandler ().start ()) {
0 commit comments