You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2022/04/27 05:15:45 UTC
[isis] 01/03: ISIS-2297: InterruptedExceptions should never be ignored in the code
This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git
commit c598249c8f42ec6549025ee5411db3d22709dcd6
Author: Andi Huber <ah...@apache.org>
AuthorDate: Wed Apr 27 07:01:37 2022 +0200
ISIS-2297: InterruptedExceptions should never be ignored in the code
---
.../main/java/org/apache/isis/commons/internal/debug/xray/XrayUi.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/commons/src/main/java/org/apache/isis/commons/internal/debug/xray/XrayUi.java b/commons/src/main/java/org/apache/isis/commons/internal/debug/xray/XrayUi.java
index 201a8f98dd..01742d9f81 100644
--- a/commons/src/main/java/org/apache/isis/commons/internal/debug/xray/XrayUi.java
+++ b/commons/src/main/java/org/apache/isis/commons/internal/debug/xray/XrayUi.java
@@ -105,8 +105,10 @@ public class XrayUi extends JFrame {
System.err.println("Waiting for XrayUi to shut down...");
try {
latch.await();
- } catch (Exception e) {
+ } catch (InterruptedException e) {
e.printStackTrace();
+ // Restore interrupted state...
+ Thread.currentThread().interrupt();
}
}