Skip to content

Add Guavate.tryCatchToOptional#2161

Merged
jodastephen merged 2 commits into
masterfrom
topic/catch-to-optional
May 20, 2020
Merged

Add Guavate.tryCatchToOptional#2161
jodastephen merged 2 commits into
masterfrom
topic/catch-to-optional

Conversation

@jodastephen
Copy link
Copy Markdown
Contributor

Convert an exception throwing getFoo() method to an Optional returning findFoo() method

Convert an exception throwing `getFoo()` method to an
Optional returning `findFoo()` method
@jodastephen jodastephen requested review from cjkent and wjnicholson May 20, 2020 12:03
Comment on lines +148 to +149
* @param <T> the type of the result
* @param supplier the supplier that might throw an exception
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Spacing looks odd here - is that double spaced?

*
* @param <T> the type of the result
* @param supplier the supplier that might throw an exception
* @return the value wrapped in an exception, empty if the method returns null or an exception is thrown
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
* @return the value wrapped in an exception, empty if the method returns null or an exception is thrown
* @return the value wrapped in an optional, empty if the method returns null or an exception is thrown

@jodastephen jodastephen requested a review from wjnicholson May 20, 2020 13:03
@jodastephen jodastephen merged commit 7d39d4b into master May 20, 2020
@delete-merged-branch delete-merged-branch Bot deleted the topic/catch-to-optional branch May 20, 2020 16:31
@jodastephen jodastephen added this to the v2.8 milestone Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants