Skip to content

SONARJAVA-5430 Check Java version in case of foreach variable#5091

Merged
romainbrenguier merged 3 commits intomasterfrom
romain/quick-fix
Apr 17, 2025
Merged

SONARJAVA-5430 Check Java version in case of foreach variable#5091
romainbrenguier merged 3 commits intomasterfrom
romain/quick-fix

Conversation

@romainbrenguier
Copy link
Copy Markdown
Contributor

@romainbrenguier romainbrenguier commented Apr 17, 2025

SONARJAVA-5430

The quickfix will only work starting with Java 22.
We should not raise an issue before that.

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.

Looks good, thanks for the fix!

This quickfix will only work starting with Java 22.
We should not raise an issue before that.
…mple file

Whether we should raise an issue or not will depend on the Java version used for these examples.
This is because we removed some unused imports from a sample file.
@sonarqube-next
Copy link
Copy Markdown

@romainbrenguier romainbrenguier merged commit 2247e49 into master Apr 17, 2025
14 of 15 checks passed
@romainbrenguier romainbrenguier deleted the romain/quick-fix branch April 17, 2025 12:30
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