Skip to content

Commit 5652a86

Browse files
authored
Update WithParameterSupplier.java
Capture unused Theories creation into an unused variable (ErrorProne's CheckReturnValue can be configured to require all constructor calls to be used).
1 parent 2a46ff3 commit 5652a86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/junit/tests/experimental/theories/runner/WithParameterSupplier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public void theory(@ParametersSuppliedBy(SupplierWithTestClassConstructor.class)
159159

160160
@Test
161161
public void shouldAcceptSuppliersWithTestClassConstructor() throws Exception {
162-
new Theories(TestClassUsingSupplierWithTestClassConstructor.class);
162+
Theories unused = new Theories(TestClassUsingSupplierWithTestClassConstructor.class);
163163
}
164164

165165
}

0 commit comments

Comments
 (0)