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

Lang 1482 #448

Closed
wants to merge 42 commits into from
Closed

Lang 1482 #448

wants to merge 42 commits into from

Conversation

verhas
Copy link
Contributor

@verhas verhas commented Aug 26, 2019

mainly code clean up
extra tests that were missing
rethrow now corrects stack trace showing the location where the rethrow was called
(nobody cares that an exception was thrown from a utility function that does nothing else but throws the exception)
documentation was extended

throw rethrow(t);
}
};
return () -> call(pCallable);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The functionality as it was implemented the first hand is already there.

@coveralls
Copy link

coveralls commented Aug 26, 2019

Coverage Status

Coverage increased (+0.03%) to 95.407% when pulling 41fef2d on verhas:LANG-1482 into 1163e17 on apache:master.

@@ -414,8 +412,8 @@ public void testAsPredicate() {
assertNotNull(cause);
assertTrue(cause instanceof SomeException);
assertEquals("Odd Invocation: 1", cause.getMessage());
// assert that it does not throw exception
final boolean instance = predicate.test(null);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

assertNotNull() makes no sense on primitive

@verhas
Copy link
Contributor Author

verhas commented Feb 3, 2020

And now all the cleanup, extra JavaDoc is just gone...

@verhas verhas closed this Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants