Skip to content

Conversation

@yyanyy
Copy link
Contributor

@yyanyy yyanyy commented Dec 8, 2020

Follow up item from #1747 to clean up Expressions a bit. No behavior change.

@SuppressWarnings("unchecked")
static <T> Literal<T> from(T value) {
Preconditions.checkNotNull(value, "Cannot create expression literal from null");
Preconditions.checkArgument(!NaNUtil.isNaN(value), "Cannot expression literal from NaN");
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like the verb is missing. It should be "Cannot create expression literal from NaN".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, sorry should have double checked... I include the fix of this in #1857 since I think they are kind of related, but please let me know if you want a separate PR for that!

@rdblue
Copy link
Contributor

rdblue commented Dec 8, 2020

Thanks @yyanyy! I think this just needs to fix the exception message and then it's ready to go in.

@rdblue rdblue merged commit e42f96d into apache:master Dec 8, 2020
@rdblue
Copy link
Contributor

rdblue commented Dec 8, 2020

Merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants