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();
|
||||
}
|
||||
} catch (InterruptedException | ExecutionException e) {
|
||||
// Restore interrupted state...
|
||||
Thread.currentThread().interrupt();
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
// Terminate all threads.
|
||||
|
|
Loading…
Reference in New Issue