Skip to content

Commit de4cf8b

Browse files
minor test cleanup
1 parent 5ad642d commit de4cf8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

enigma-cli/src/test/java/org/quiltmc/enigma/command/PredicateParserTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ static class Builder {
128128
this.predicate = predicate;
129129
}
130130

131-
@SuppressWarnings("unused")
131+
@SuppressWarnings({"unused", "RedundantThrows"})
132132
Builder expect() throws Throwable {
133133
throw new UnsupportedOperationException();
134134
}
@@ -144,7 +144,7 @@ Builder expect(String... expect) {
144144
return this;
145145
}
146146

147-
@SuppressWarnings("unused")
147+
@SuppressWarnings({"unused", "RedundantThrows"})
148148
Builder unexpect() throws Throwable {
149149
throw new UnsupportedOperationException();
150150
}
@@ -162,7 +162,7 @@ Builder unexpect(String... unexpect) {
162162

163163
ValidCase build() {
164164
if (this.expect == null) {
165-
throw new IllegalStateException("Not expect for '%s'!".formatted(this.predicate));
165+
throw new IllegalStateException("No expect for '%s'!".formatted(this.predicate));
166166
}
167167

168168
if (this.unexpect == null) {

0 commit comments

Comments
 (0)