Skip to content

chore: hide implicit constructor in TemplateEngineFactory - #2072

Merged
lbroudoux merged 1 commit into
microcks:masterfrom
dipak0000812:chore/2058-template-engine-factory
May 5, 2026
Merged

lbroudoux merged 1 commit into
microcks:masterfrom
dipak0000812:chore/2058-template-engine-factory

Conversation

@dipak0000812

Copy link
Copy Markdown
Contributor

Refs #2058

Fix Sonar rule for utility classes by preventing instantiation of TemplateEngineFactory.

  • Add private constructor to hide implicit public constructor
  • Align with utility class design pattern

No functional changes.

@dipak0000812
dipak0000812 force-pushed the chore/2058-template-engine-factory branch 3 times, most recently from ccc1c44 to c183aa6 Compare May 3, 2026 09:15

@lbroudoux lbroudoux left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for pushing this. I'd prefer a slightly different approach for better consistency with code base. Thanks!

@lbroudoux lbroudoux added kind/task java Pull requests that update Java code labels May 4, 2026
@dipak0000812
dipak0000812 force-pushed the chore/2058-template-engine-factory branch from c183aa6 to c891abf Compare May 4, 2026 15:22
@dipak0000812
dipak0000812 force-pushed the chore/2058-template-engine-factory branch from c891abf to 1d46431 Compare May 4, 2026 15:29
@dipak0000812

Copy link
Copy Markdown
Contributor Author

Thanks for the suggestion. Updated the constructor to align with existing code style by removing the exception and adding a comment instead.

@lbroudoux lbroudoux left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@lbroudoux lbroudoux added this to the 1.15.0 milestone May 5, 2026
@lbroudoux
lbroudoux merged commit 2c20b26 into microcks:master May 5, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

java Pull requests that update Java code kind/task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants