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

Fully documented the Java Functional helpers #224

Merged
merged 2 commits into from Apr 11, 2012

Conversation

jroper
Copy link
Member

@jroper jroper commented Apr 6, 2012

Most of this pull request is just javadocs. However, there are a few other small changes:

  • The biggest one is that everywhere that wraps throwables in RuntimeExceptions has been modified so that RuntimeExceptions don't get double wrapped. This should mean if talking to libraries that throw RuntimeException subclasses, that things like get() should end up throwing the original exception that was thrown, instead of throwing a wrapped (possibly many times) exception.
  • A few function parameters have been renamed for the purposes of better documenting them.

@pk11
Copy link
Contributor

pk11 commented Apr 11, 2012

This looks good. Could you please sign our CLA? http://www.typesafe.com/contribute/cla ?

@jroper
Copy link
Member Author

jroper commented Apr 11, 2012

Signed.

pk11 pushed a commit that referenced this pull request Apr 11, 2012
Fully documented the Java Functional helpers
@pk11 pk11 merged commit a2fa280 into playframework:master Apr 11, 2012
@pk11
Copy link
Contributor

pk11 commented Apr 11, 2012

thank you.

return Some(function.apply(get()));
} catch (RuntimeException e) {
throw e;
} catch (Throwable t) {
throw new RuntimeException();

Choose a reason for hiding this comment

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

Aren't we losing the original exception (throwable) here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Wow, I didn't even notice that, you are right.

Copy link
Member Author

Choose a reason for hiding this comment

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

Pull request with fix:

#243

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

3 participants