Skip to content

JAtom int/long direct call to representation - #188

Merged
phax merged 1 commit into
phax:masterfrom
glelouet:jatomIL_direct_intrepresentation_call
Aug 30, 2026
Merged

JAtom int/long direct call to representation#188
phax merged 1 commit into
phax:masterfrom
glelouet:jatomIL_direct_intrepresentation_call

Conversation

@glelouet

Copy link
Copy Markdown
Collaborator

Basically the IntegerRepresentation is only the params. The EIntegerBase is the one doing the formatting.

also renamed "represent()" to "format()", more explicit

also renamed field representation to m_aRepresentation, using getter representation() instead.

Basically the IntegerRepresentation is only the params. The EIntegerBase
is the one doing the formatting.

also renamed "represent()" to "format()", more explicit

also renamed field representation to m_aRepresentation, using getter
representation() instead.
@glelouet
glelouet requested a review from phax August 30, 2026 16:12
// actual formatting is delegated to the base
//

public String format (int i)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Why remove these sanity methods? Isn't that something you usually like?

@glelouet glelouet Aug 30, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I just moved the call ? instead of applying to the Representation, which calls the base with itself as params, I directly call the base with the Representation as param.

This was something you mentionned in the previous PR, but was left off when merging.

https://github.com/phax/jcodemodel/pull/182/changes/BASE..3bdb5451ab1ca63c54468698a14c0049dc0a98b6#diff-27921528c84e44ffe0fa1c30100ce28fa45cbec7042924072abd01196e7eb229R64

@phax
phax merged commit 52a45cf into phax:master Aug 30, 2026
4 checks passed
@glelouet
glelouet deleted the jatomIL_direct_intrepresentation_call branch August 30, 2026 17:56
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.

2 participants