Код: Выделить всё
try {
// ...
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
}
Код: Выделить всё
try {
//...
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
Подробнее здесь: https://stackoverflow.com/questions/397 ... on-in-java
Мобильная версия