Skip to content

Conversation

@Marpioux
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Jan 28, 2025

Pull Request Test Coverage Report for Build 13014590610

Details

  • 23 of 23 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.05%) to 97.657%

Totals Coverage Status
Change from base Build 12690426541: 0.05%
Covered Lines: 792
Relevant Lines: 811

💛 - Coveralls

Copy link
Member

@badetitou badetitou left a comment

Choose a reason for hiding this comment

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

You do use really low level API of Pharo/Moose. I am pretty sure it is possible to create more clean code. At least with isKindOf: (even if it is not the best option)

modifier token = 'public' ifTrue: [ famixVariable isPublic: true ].
modifier token = 'final' ifTrue: [ famixVariable isFinal: true ].
modifier token = 'static' ifTrue: [ famixVariable isClassSide: true ] ].
anyOne modifiers do: [ :modifier |
Copy link
Member

Choose a reason for hiding this comment

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

Hello,

This is a real strange fix. Can you please share a description of the issue, depicting the error. And add a test for this feature so it will not be removed in the future for your bug.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hello,
When an aFASTJavaVariableDeclarator is created for Java code like:

@Value("${com.example}") private String test;

Two things are created in the modifiers:

  • The actual token (e.g., public, private, ...) => FASTJavaModifier
  • The different annotations => FASTJavaAnnotation

For this loop on modifiers, we work with FASTJavaModifier. I just added a type checker to fix the loop.

@badetitou
Copy link
Member

I think you should add an issue here https://github.com/moosetechnology/FAST-JAVA/issues

@badetitou badetitou merged commit 6a3399b into Evref-BL:v2 Jan 28, 2025
1 check 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