Skip to content

Commit 70e5af7

Browse files
committed
Polishing: remove unnecessary code
1 parent 52bc3cf commit 70e5af7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

spring-test/src/main/java/org/springframework/test/context/bean/override/mockito/MockitoTestExecutionListener.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,6 @@ private void closeMocks(TestContext testContext) throws Exception {
122122
if (mocks instanceof MockitoSession session) {
123123
session.finishMocking();
124124
}
125-
else if (mocks instanceof AutoCloseable closeable) {
126-
closeable.close();
127-
}
128125
}
129126

130127
private boolean hasMockitoAnnotations(TestContext testContext) {

0 commit comments

Comments
 (0)