Skip to content

feat: NumberResolver#66

Merged
MessiasLima merged 2 commits into
mainfrom
feature/add-number-resolver-3983215681049157309
Jun 15, 2026
Merged

feat: NumberResolver#66
MessiasLima merged 2 commits into
mainfrom
feature/add-number-resolver-3983215681049157309

Conversation

@MessiasLima

Copy link
Copy Markdown
Owner

Added NumberResolver to handle kotlin.Number by delegating to concrete numeric subtypes. Registered the resolver in SomeConfig and added comprehensive unit tests.

Fixes #45


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

- Implement NumberResolver that delegates to concrete numeric subtypes (Int, Long, Double, Float, Short, Byte).
- Register NumberResolver in SomeConfig after concrete numeric resolvers.
- Add unit tests for NumberResolver following the standard 3-test pattern.
- Ensure some<Number>() returns a random concrete numeric value.

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 a new NumberResolver to handle the resolution of the abstract Number type by randomly selecting a concrete numeric type (such as Int, Long, Double, etc.) and delegating its resolution. Corresponding unit tests are also added. The review feedback suggests optimizing performance by extracting the list of numeric types to a companion object to avoid recreating it and calling typeOf on every invocation of resolve.

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.

Comment thread src/main/kotlin/dev/appoutlet/some/resolver/NumberResolver.kt
@MessiasLima MessiasLima changed the title Add NumberResolver for kotlin.Number type feat: NumberResolver Jun 15, 2026
@MessiasLima MessiasLima merged commit d942461 into main Jun 15, 2026
1 check passed
@MessiasLima MessiasLima deleted the feature/add-number-resolver-3983215681049157309 branch June 15, 2026 13:53
@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.

Add NumberResolver for kotlin.Number type

1 participant