Skip to content

refactor: migrate Xtend to Java - com.avaloq.tools.ddk.xtext.check.generator#1426

Open
joaodinissf wants to merge 1 commit into
dsldevkit:masterfrom
joaodinissf:migrate/xtend-to-java/xtext-check-generator
Open

refactor: migrate Xtend to Java - com.avaloq.tools.ddk.xtext.check.generator#1426
joaodinissf wants to merge 1 commit into
dsldevkit:masterfrom
joaodinissf:migrate/xtend-to-java/xtext-check-generator

Conversation

@joaodinissf

Copy link
Copy Markdown
Collaborator

Migrates the com.avaloq.tools.ddk.xtext.check.generator module's two remaining Xtend generator fragments to hand-written Java, leaving the module Xtend-free.

Changes

  • CheckValidatorFragment2 and quickfix/CheckQuickfixProviderFragment2 converted to Java, byte-faithful to the generated xtend-gen output. The two StringConcatenation/StringConcatenationClient code-generation templates are preserved exactly and bracketed with CHECKSTYLE:CONSTANTS-OFF/ON.
  • Removed the now-unused per-module Xtend build wiring: xtend-gen source entry in build.properties/.classpath, xtextBuilder/xtextNature in .project, and the xtend-gen directory.
  • Require-Bundle is unchanged: the generator templates legitimately use org.eclipse.xtend2.lib, which is provided transitively via org.eclipse.xtext/org.eclipse.xtext.xtext.generator — there was never an xbase.lib/xtend.lib entry to drop.

Validation

Local clean verify checkstyle:check pmd:check pmd:cpd-check spotbugs:check is green (0 checkstyle / 0 PMD / 0 SpotBugs).

@joaodinissf joaodinissf marked this pull request as ready for review June 16, 2026 16:47
@joaodinissf joaodinissf requested a review from rubenporras June 16, 2026 16:47
@joaodinissf joaodinissf enabled auto-merge (rebase) June 16, 2026 16:50
…nerator

Convert the module's two remaining Xtend generator fragments to hand-written Java, byte-faithful to the xtend-gen ground truth: CheckValidatorFragment2 and quickfix/CheckQuickfixProviderFragment2 (StringConcatenation(Client) templates preserved exactly, bracketed with CHECKSTYLE:CONSTANTS-OFF/ON).

Remove the now-unused per-module Xtend build wiring (xtend-gen entry in build.properties/.classpath, xtextBuilder/xtextNature in .project, the xtend-gen directory). Require-Bundle is unchanged: the templates legitimately use org.eclipse.xtend2.lib, provided transitively via org.eclipse.xtext(.xtext.generator).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@joaodinissf joaodinissf force-pushed the migrate/xtend-to-java/xtext-check-generator branch from 4a74af4 to d66599e Compare June 17, 2026 05:13
joaodinissf added a commit to joaodinissf/dsl-devkit that referenced this pull request Jun 17, 2026
…attingTest

Replace the 5 StringConcatenation builders (input/expected formatted-Check sources) with Java text blocks. Each was proven byte-identical to the original StringConcatenation output via a comparator before applying, so the formatter assertions are unchanged. Drops the org.eclipse.xtend2.lib.StringConcatenation dependency from this test (file shrinks ~1018->570 lines). Addresses Ruben's review preference (cf. dsldevkit#1426). CheckModelUtil's StringBuilder is a genuine for-loop over a List and is correctly left as idiomatic java.lang.StringBuilder.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@joaodinissf joaodinissf requested a review from rubenporras June 17, 2026 06:15
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