Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@cchantep
Copy link
Member

No description provided.

Copy link
Member

Choose a reason for hiding this comment

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

I'd use try/catch here instead of Try/match. It's just a little bit simpler to use the native keywords unless you're using one of the features of Try.

try Right(UUID.fromString(s)) catch {
   case NonFatal(_) => Left(TypeDoesNotMatch(...))
}

Copy link
Member Author

Choose a reason for hiding this comment

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

I'd prefer to update it first on master, with another commit.

Either this one is put on hold, or it would be change by another backport.

Copy link
Member

Choose a reason for hiding this comment

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

That sounds fine to me. I don't think you should update this backport PR.
It's just a minor thing, but if you agree you could update it on master at
some point in the future.

Copy link
Member Author

Choose a reason for hiding this comment

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

Think so. Thanks @richdougherty

richdougherty added a commit that referenced this pull request Oct 30, 2014
Backport #3576: Add anorm support for parsing UUIDs from JDBC Strings
@richdougherty richdougherty merged commit 8f89f24 into playframework:2.3.x Oct 30, 2014
@cchantep cchantep deleted the backport-3576 branch October 30, 2014 23:02
@pvlugter pvlugter added this to the 2.3.7 milestone Dec 4, 2014
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.

5 participants