From ef11af8676e6479189393541e74c7407987251fc Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 9 May 2019 12:10:33 +0100 Subject: [PATCH] Polish "Remove unnecessary latches in tests" Closes gh-16733 --- .../env/DevToolsHomePropertiesPostProcessorTests.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessorTests.java b/spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessorTests.java index 1ed5f1e1ae..cb2a71a99f 100644 --- a/spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessorTests.java +++ b/spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessorTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -73,9 +73,7 @@ public class DevToolsHomePropertiesPostProcessorTests { } protected void runPostProcessor(Runnable runnable) throws Exception { - Thread thread = new Thread(() -> { - runnable.run(); - }); + Thread thread = new Thread(runnable); thread.start(); thread.join(); }