Skip to content

fix: eliminate implicit numeric cast warning in date generation - #990

Merged
delei merged 1 commit into
apache:mainfrom
xleoken:patch_001
Aug 6, 2026
Merged

fix: eliminate implicit numeric cast warning in date generation#990
delei merged 1 commit into
apache:mainfrom
xleoken:patch_001

Conversation

@xleoken

@xleoken xleoken commented Aug 6, 2026

Copy link
Copy Markdown
Member

Purpose of the pull request

fix: eliminate implicit numeric cast warning in date generation

What's changed?

cast int to long.

Checklist

  • I have read the Contributor Guide.
  • I have written the necessary doc or comment.
  • I have added the necessary unit tests and all cases have passed.

Copilot AI left a comment

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.

Pull request overview

This PR updates an example data generator to avoid an implicit numeric cast warning when generating sequential java.util.Date instances.

Changes:

  • Adjusted the day-offset arithmetic in generateDates() by introducing a long literal in the multiplication chain.

@delei delei left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@delei
delei merged commit 5274b2f into apache:main Aug 6, 2026
9 checks passed
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.

3 participants