Skip to content

Commit ef11af8

Browse files
committed
Polish "Remove unnecessary latches in tests"
Closes gh-16733
1 parent 0baceb4 commit ef11af8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessorTests.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2017 the original author or authors.
2+
* Copyright 2012-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -73,9 +73,7 @@ public void ignoresMissingHomeProperties() throws Exception {
7373
}
7474

7575
protected void runPostProcessor(Runnable runnable) throws Exception {
76-
Thread thread = new Thread(() -> {
77-
runnable.run();
78-
});
76+
Thread thread = new Thread(runnable);
7977
thread.start();
8078
thread.join();
8179
}

0 commit comments

Comments
 (0)