Skip to content

refactor(grails-data-hibernate7): idiomatic Groovy cleanup of the J2G output - #16678

Open
borinquenkid wants to merge 2 commits into
9.0.x-h7-improvement-phase3from
groovyism/hibernate7
Open

borinquenkid wants to merge 2 commits into
9.0.x-h7-improvement-phase3from
groovyism/hibernate7

Conversation

@borinquenkid

Copy link
Copy Markdown
Member

Stacks on #16572 (java-to-groovy conversion for grails-data-hibernate7).

Idiom pass over that conversion's output: the conversion PR keeps the original Java semicolons and double-quoted strings, under a @SuppressWarnings('UnnecessarySemicolon') header and a TODO(groovyism-cleanup) comment, so git still recognizes each .java -> .groovy pair as a rename (see matrei's review on #16576). This PR removes that scaffolding and applies the Groovy idioms CodeNarc expects.

Verification

  • compile and CodeNarc of the module's own projects pass on this branch (the tip carries the 10.0.x merge of the conversion PR)
  • no tests were run locally for this stacked cleanup (compile and CodeNarc only); CI on stacked PRs is disabled, see below

CI note: this stacked branch inherits the temporary CHANGEME FOR ACCEPTANCE workflow-trigger commit from its base, so no CI runs on it. That commit must be reverted, and CI green, before this PR merges (blocker).

🤖 Generated with Claude Code

@borinquenkid
borinquenkid marked this pull request as ready for review October 20, 2026 02:09
Copilot AI balanced review requested due to automatic review settings October 20, 2026 02:09

Copilot AI left a comment

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@borinquenkid
borinquenkid changed the base branch from refactor/java-to-groovy-grails-data-hibernate7 to 9.0.x-remove-h5 October 20, 2026 20:45
… partial

The stage-2 conversion of grails-data-hibernate7 kept semicolons, double
quotes and Java idioms to preserve rename similarity against the original
.java. This pass makes 51 of those files read as Groovy: no semicolons,
single-quoted plain strings, property access, Groovy truth where a Groovy
File is not involved, and no `.class` on class references. No behaviour
change: the module's suite is the safety net.

Rebuilt on 9.0.x-h7-improvement-phase3 after the Hibernate 5 removal was
withdrawn (#16350 is closed: Hibernate 5 stays through Grails 10), so the
branch no longer carries the removal commits. It carries the 2026-10-22
upstream ports (tenant filter on every to-many, count-only queries without
orders, enum unique groups over every member column) as merged.
@borinquenkid
borinquenkid changed the base branch from 9.0.x-remove-h5 to 9.0.x-h7-improvement-phase3 October 22, 2026 19:03

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants