Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For #39: Handling InterruptedException properly #42

Merged
merged 1 commit into from Feb 12, 2019

Conversation

paulodamaso
Copy link
Contributor

For #39: Handling InterruptedException properly

  • Called Thread.currentThread().interrupt(); on InterruptedException

@0crat
Copy link
Collaborator

0crat commented Feb 10, 2019

@paulodamaso/z this pull request is too small, just 7 lines changed (less than 10), there will be no formal code review, see §53 and §28; in the future, try to make sure your pull requests are not too small; @amihaiemil/z please review this and merge or reject

throw new IllegalStateException(
"Exception while waiting for Wallet!", ex
);
} catch (final InterruptedException iex) {
Thread.currentThread().interrupt();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@paulodamaso after interrupting the Thread, shouldn't we throw IllegalStateException as well? :D

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@amihaiemil According to the ticket description and the documentation provided we must choose between one of two: either rethrow the exception or interrupt the thread

@paulodamaso
Copy link
Contributor Author

@amihaiemil Answered, please take a look

@amihaiemil
Copy link
Owner

@paulodamaso right, I forgot, sorry :)

@amihaiemil
Copy link
Owner

@rultor merge it

@rultor
Copy link
Collaborator

rultor commented Feb 12, 2019

@rultor merge it

@amihaiemil OK, I'll try to merge now. You can check the progress of the merge here

@rultor rultor merged commit 1c5be27 into amihaiemil:master Feb 12, 2019
@rultor
Copy link
Collaborator

rultor commented Feb 12, 2019

@rultor merge it

@amihaiemil Done! FYI, the full log is here (took me 2min)

@0crat
Copy link
Collaborator

0crat commented Feb 12, 2019

Job gh:amihaiemil/zold-java-client#42 is not assigned, can't get performer

@0crat
Copy link
Collaborator

0crat commented Feb 12, 2019

This job is not in scope

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants