Sonar fix: restore thread interrupted state
This commit is contained in:
parent
7813ecb115
commit
09dd29e56d
|
@ -124,6 +124,8 @@ public final class TravellingSalesmanSolver {
|
||||||
f.get();
|
f.get();
|
||||||
}
|
}
|
||||||
} catch (InterruptedException | ExecutionException e) {
|
} catch (InterruptedException | ExecutionException e) {
|
||||||
|
// Restore interrupted state...
|
||||||
|
Thread.currentThread().interrupt();
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
// Terminate all threads.
|
// Terminate all threads.
|
||||||
|
|
Loading…
Reference in New Issue