Skip to content

refactor: convert log calls to parameterized logging in DDK builder/generator/UI#1307

Draft
joaodinissf wants to merge 4 commits intodsldevkit:masterfrom
joaodinissf:chore/pmd-guard-log/ddk-builder-gen-ui
Draft

refactor: convert log calls to parameterized logging in DDK builder/generator/UI#1307
joaodinissf wants to merge 4 commits intodsldevkit:masterfrom
joaodinissf:chore/pmd-guard-log/ddk-builder-gen-ui

Conversation

@joaodinissf
Copy link
Copy Markdown
Collaborator

@joaodinissf joaodinissf commented Apr 6, 2026

Stacked on #1306

Summary

Replace string concatenation and NLS.bind in log calls with parameterized {} placeholders. Use Supplier/method-refs for lazy argument evaluation. Add NOPMD suppressions for ITraceSet.trace() and Supplier method-refs not recognized by PMD. Add org.apache.logging.log4j.util to OSGi manifests.

Modules: xtext.builder, xtext.expression, xtext.generator, xtext.ui, xtext.test.core

🤖 Generated with Claude Code

joaodinissf and others added 4 commits April 6, 2026 22:35
Replace string concatenation, NLS.bind, and MessageFormat.format in
log calls with parameterized {} placeholders. Use Supplier/method-refs
for lazy argument evaluation where appropriate.

Modules: check.core.test, check.runtime.core, check.runtime.ui,
check.ui, checkcfg.core

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace string concatenation with parameterized {} placeholders.
Use Supplier lambdas for lazy argument evaluation. Add NOPMD
suppressions for SLF4J logger calls (SwtBot uses SLF4J, not Log4j).
Add org.apache.logging.log4j.util to OSGi manifests for Supplier.

Modules: test.core, test.ui

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace string concatenation, NLS.bind, and MessageFormat.format in
log calls with parameterized {} placeholders. Use Supplier/method-refs
for lazy argument evaluation. Extract duplicate format strings to
constants. Add org.apache.logging.log4j.util to OSGi manifest.

Modules: xtext, typesystem

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…enerator/UI

Replace string concatenation and NLS.bind in log calls with
parameterized {} placeholders. Use Supplier/method-refs for lazy
argument evaluation. Add NOPMD suppressions for ITraceSet.trace()
and Supplier method-refs not recognized by PMD. Add
org.apache.logging.log4j.util to OSGi manifests.

Modules: xtext.builder, xtext.expression, xtext.generator,
xtext.ui, xtext.test.core

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@joaodinissf joaodinissf force-pushed the chore/pmd-guard-log/ddk-builder-gen-ui branch from 0cfcee8 to 43d0eaf Compare April 6, 2026 20:42
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.

1 participant