Skip to content

Commit 24bf7e0

Browse files
slarsewoutersmeenk
authored andcommitted
fix: Fix violation of Sonar rule 2142 (INRIA#3930)
1 parent 85d3d44 commit 24bf7e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/spoon/processing/AbstractParallelProcessor.java

+3
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ private void awaitJobCompletion() {
156156
try {
157157
job.get();
158158
} catch (InterruptedException | ExecutionException e) {
159+
if (e instanceof InterruptedException) {
160+
Thread.currentThread().interrupt();
161+
}
159162
throw new SpoonException("failed to wait for parallel processor to finish", e);
160163
}
161164
}

0 commit comments

Comments
 (0)