Skip to content

feat: java.time.ZonedDateTime resolver#63

Merged
MessiasLima merged 7 commits into
mainfrom
add-zoned-date-time-resolver-8048027922549992562
Jun 15, 2026
Merged

feat: java.time.ZonedDateTime resolver#63
MessiasLima merged 7 commits into
mainfrom
add-zoned-date-time-resolver-8048027922549992562

Conversation

@MessiasLima

Copy link
Copy Markdown
Owner

This PR adds support for java.time.ZonedDateTime to the library.

Key changes:

  1. JavaZonedDateTimeResolver: A new resolver that generates random ZonedDateTime values between 1970 and 2100 (UTC).
  2. Configuration: Registered the new resolver in SomeConfig.buildResolvers(), maintaining the established order for Java time types.
  3. Testing: Added JavaZonedDateTimeResolverTest to verify correct resolution, range constraints, and type rejection.

All tests and static analysis (detekt) pass.

Fixes #57


PR created automatically by Jules for task 8048027922549992562 started by @MessiasLima

- Created JavaZonedDateTimeResolver to generate random ZonedDateTime instances.
- Registered JavaZonedDateTimeResolver in SomeConfig.buildResolvers().
- Added comprehensive unit tests for JavaZonedDateTimeResolver.

Co-authored-by: MessiasLima <10220064+MessiasLima@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request introduces JavaZonedDateTimeResolver to support resolving ZonedDateTime types, registering it in SomeConfig and adding comprehensive unit tests. The reviewer suggested an optimization to generate a random epoch second directly instead of generating year, day, hour, minute, and second separately, which reduces intermediate object allocations and simplifies the code.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@MessiasLima

Copy link
Copy Markdown
Owner Author

@jules update the documentation to mention this new resolver

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

@jules add detailed KDocs

@google-labs-jules

Copy link
Copy Markdown
Contributor

@jules update the documentation to mention this new resolver

Documentation has been updated in docs/supported-types.md to include java.time.ZonedDateTime.

google-labs-jules Bot and others added 2 commits June 14, 2026 23:32
- Added java.time.ZonedDateTime to the list of supported types in docs/supported-types.md.

Co-authored-by: MessiasLima <10220064+MessiasLima@users.noreply.github.com>
- Added JavaZonedDateTimeResolver to the resolver registration order in AGENTS.md.

Co-authored-by: MessiasLima <10220064+MessiasLima@users.noreply.github.com>
google-labs-jules Bot and others added 4 commits June 15, 2026 04:46
- Replaced ZoneOffset.UTC with a random ZoneId from the available set.

Co-authored-by: MessiasLima <10220064+MessiasLima@users.noreply.github.com>
- Optimized ZonedDateTime generation using epoch seconds.
- Added detailed KDocs to JavaZonedDateTimeResolver.
- Cached available ZoneIds for better performance.

Co-authored-by: MessiasLima <10220064+MessiasLima@users.noreply.github.com>
@MessiasLima MessiasLima changed the title Add Resolver for java.time.ZonedDateTime feat: java.time.ZonedDateTime resolver Jun 15, 2026
@MessiasLima MessiasLima merged commit 685faf4 into main Jun 15, 2026
1 check passed
@MessiasLima MessiasLima deleted the add-zoned-date-time-resolver-8048027922549992562 branch June 15, 2026 11:44
@github-project-automation github-project-automation Bot moved this from Ready to Done in Some Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Create a Resolver for java.time.ZonedDateTime

1 participant