Merge branch '1.3.x
This commit is contained in:
commit
8e669e2eef
|
@ -69,7 +69,7 @@ public class ShutdownEndpoint extends AbstractEndpoint<Map<String, Object>>
|
|||
Thread.sleep(500L);
|
||||
}
|
||||
catch (InterruptedException ex) {
|
||||
// Swallow exception and continue
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
ShutdownEndpoint.this.context.close();
|
||||
}
|
||||
|
|
|
@ -93,7 +93,7 @@ public class HeapdumpMvcEndpoint extends AbstractMvcEndpoint implements MvcEndpo
|
|||
}
|
||||
}
|
||||
catch (InterruptedException ex) {
|
||||
// Ignore
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
response.setStatus(HttpStatus.TOO_MANY_REQUESTS.value());
|
||||
}
|
||||
|
|
|
@ -93,6 +93,7 @@ public class HeapdumpMvcEndpointTests {
|
|||
public void invokeWhenLockedShouldReturnTooManyRequestsStatus() throws Exception {
|
||||
this.endpoint.setLocked(true);
|
||||
this.mvc.perform(get("/heapdump")).andExpect(status().isTooManyRequests());
|
||||
assertThat(Thread.interrupted()).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
@ -91,7 +91,7 @@ public final class RemoteSpringApplication {
|
|||
Thread.sleep(1000);
|
||||
}
|
||||
catch (InterruptedException ex) {
|
||||
// Ignore
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@ class FileWatchingFailureHandler implements FailureHandler {
|
|||
latch.await();
|
||||
}
|
||||
catch (InterruptedException ex) {
|
||||
// Ignore
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
return Outcome.RETRY;
|
||||
}
|
||||
|
|
|
@ -239,7 +239,7 @@ public class FileSystemWatcher {
|
|||
scan();
|
||||
}
|
||||
catch (InterruptedException ex) {
|
||||
// Ignore
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
remainingScans = this.remainingScans.get();
|
||||
}
|
||||
|
|
|
@ -96,7 +96,7 @@ class DelayedLiveReloadTrigger implements Runnable {
|
|||
this.liveReloadServer.triggerReload();
|
||||
}
|
||||
catch (InterruptedException ex) {
|
||||
// Ignore
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -106,7 +106,7 @@ public class TunnelClient implements SmartInitializingSingleton {
|
|||
this.serverThread.join(2000);
|
||||
}
|
||||
catch (InterruptedException ex) {
|
||||
// Ignore
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
this.serverThread = null;
|
||||
}
|
||||
|
|
|
@ -273,6 +273,7 @@ public class HttpTunnelServer {
|
|||
this.httpConnections.wait(HttpTunnelServer.this.longPollTimeout);
|
||||
}
|
||||
catch (InterruptedException ex) {
|
||||
Thread.currentThread().interrupt();
|
||||
closeHttpConnections();
|
||||
}
|
||||
httpConnection = this.httpConnections.pollFirst();
|
||||
|
@ -442,7 +443,7 @@ public class HttpTunnelServer {
|
|||
}
|
||||
}
|
||||
catch (InterruptedException ex) {
|
||||
// Ignore
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -252,6 +252,7 @@ public class RandomAccessDataFile implements RandomAccessData {
|
|||
: file);
|
||||
}
|
||||
catch (InterruptedException ex) {
|
||||
Thread.currentThread().interrupt();
|
||||
throw new IOException(ex);
|
||||
}
|
||||
}
|
||||
|
@ -276,6 +277,7 @@ public class RandomAccessDataFile implements RandomAccessData {
|
|||
}
|
||||
}
|
||||
catch (InterruptedException ex) {
|
||||
Thread.currentThread().interrupt();
|
||||
throw new IOException(ex);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -167,6 +167,7 @@ public class StartMojo extends AbstractRunMojo {
|
|||
this.lock.wait(wait);
|
||||
}
|
||||
catch (InterruptedException ex) {
|
||||
Thread.currentThread().interrupt();
|
||||
throw new IllegalStateException(
|
||||
"Interrupted while waiting for Spring Boot app to start.");
|
||||
}
|
||||
|
@ -275,6 +276,7 @@ public class StartMojo extends AbstractRunMojo {
|
|||
this.lock.wait(wait);
|
||||
}
|
||||
catch (InterruptedException ex) {
|
||||
Thread.currentThread().interrupt();
|
||||
throw new IllegalStateException(
|
||||
"Interrupted while waiting for Spring Boot app to start.");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue