Skip to content

Commit 1da09e8

Browse files
committed
argument, not state
1 parent bd883be commit 1da09e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/ch/njol/skript/classes/Changer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public static boolean acceptsChangeTypes(Class<?>[] validTypes, Class<?> @NotNul
112112
* @param <T> The type to get arithmetic change types for.
113113
*/
114114
public static <T> Class<?>[] getArithmeticChangeTypes(Class<T> type, ChangeMode mode, Predicate<OperationInfo<T, ? ,?>> filter) {
115-
Preconditions.checkState(mode == ChangeMode.ADD || mode == ChangeMode.REMOVE, "Only ADD and REMOVE modes are supported for arithmetic change types");
115+
Preconditions.checkArgument(mode == ChangeMode.ADD || mode == ChangeMode.REMOVE, "Only ADD and REMOVE modes are supported for arithmetic change types");
116116
List<OperationInfo<T, ?, ?>> opInfos;
117117
if (mode == ChangeMode.ADD) {
118118
opInfos = Arithmetics.getOperations(Operator.ADDITION, type);

0 commit comments

Comments
 (0)