Skip to content

Commit dedbbf0

Browse files
committed
Avoid warnings in tests
1 parent 5f02323 commit dedbbf0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spring-context/src/test/java/org/springframework/context/annotation/Gh29105Tests.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*
3131
* @author Stephane Nicoll
3232
*/
33-
public class Gh29105Tests {
33+
class Gh29105Tests {
3434

3535
@Test
3636
void beanProviderWithParentContextReuseOrder() {
@@ -47,6 +47,7 @@ void beanProviderWithParentContextReuseOrder() {
4747
List<Class<?>> orderedTypes = child.getBeanProvider(MyService.class)
4848
.orderedStream().map(Object::getClass).collect(Collectors.toList());
4949
assertThat(orderedTypes).containsExactly(CustomService.class, DefaultService.class);
50+
child.close();
5051
}
5152

5253

@@ -78,4 +79,5 @@ DefaultService defaultService() {
7879
}
7980

8081
}
82+
8183
}

0 commit comments

Comments
 (0)