Skip to content

Commit 1139d05

Browse files
geoandgsmet
authored andcommitted
Polish CreateMockitoSpiesCallback
(cherry picked from commit 10147ea)
1 parent b1f1a2b commit 1139d05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test-framework/junit5-mockito/src/main/java/io/quarkus/test/junit/mockito/internal/CreateMockitoSpiesCallback.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class CreateMockitoSpiesCallback implements QuarkusTestAfterConstructCall
2121

2222
// Set is here because in nested tests, there are multiple states created before destruction is triggered
2323
// This field needs to be static because each implemented callback created a new instance of this class
24-
private static Set<InjectableContext.ContextState> statesToDestroy = new HashSet<>();
24+
private static final Set<InjectableContext.ContextState> statesToDestroy = new HashSet<>();
2525

2626
@Override
2727
public void afterConstruct(Object testInstance) {

0 commit comments

Comments
 (0)