Skip to content

Commit e830199

Browse files
committed
Sonarqube: Either re-interrupt this method or rethrow the "InterruptedException"
1 parent 47e8502 commit e830199

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/SignalModuleBuiltins.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ public void postInitialize(PythonCore core) {
114114
poll = signalQueue.poll();
115115
}
116116
} catch (InterruptedException e) {
117+
Thread.currentThread().interrupt();
117118
}
118119
return poll;
119120
});
@@ -314,6 +315,7 @@ synchronized static void scheduleAlarm(long seconds) {
314315
try {
315316
Thread.sleep(seconds * 1000);
316317
} catch (InterruptedException e) {
318+
Thread.currentThread().interrupt();
317319
}
318320
}
319321
sun.misc.Signal.raise(new sun.misc.Signal("ALRM"));

0 commit comments

Comments
 (0)