Skip to content

Codestyle improvements driven by error-prone suggestions#28311

Open
findepi wants to merge 4 commits intotrinodb:masterfrom
findepi:findepi/ep
Open

Codestyle improvements driven by error-prone suggestions#28311
findepi wants to merge 4 commits intotrinodb:masterfrom
findepi:findepi/ep

Conversation

@findepi
Copy link
Member

@findepi findepi commented Feb 16, 2026

See individual commits.

Use Optional for checking that lambda has been set
Improve readability.

This was driven by UnnecessaryLambda error-prone check, but the check is
not enabled in this commit and only some matching places are updated.
@findepi findepi requested review from losipiuk and wendigo February 16, 2026 15:01
@findepi findepi added the no-release-notes This pull request does not require release notes entry label Feb 16, 2026
@cla-bot cla-bot bot added the cla-signed label Feb 16, 2026
@github-actions github-actions bot added iceberg Iceberg connector delta-lake Delta Lake connector ignite Ignite connector mariadb MariaDB connector pinot Pinot connector labels Feb 16, 2026
@findepi findepi requested a review from chenjian2664 February 16, 2026 15:24
It encourages that the format and substitutions are close to each other,
which makes sense given substitutions are replaced positionally.
Copy link
Member

@martint martint left a comment

Choose a reason for hiding this comment

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

Enable InlineFormatString error-prone check
It encourages that the format and substitutions are close to each other,
which makes sense given substitutions are replaced positionally.

Encouraging where it makes sense and where it improves readability is ok. Forcing in in every scenario is not, as it sometimes sacrifices readability due to too many levels of nesting and too much code in a single callsite.

@findepi
Copy link
Member Author

findepi commented Feb 17, 2026

There is always escape hatch via suppress warning annotation.

Are you concerned about particular changes made in this PR? Or the changes in PR are good, but you're concerned with the check existence?

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

Labels

cla-signed delta-lake Delta Lake connector iceberg Iceberg connector ignite Ignite connector mariadb MariaDB connector no-release-notes This pull request does not require release notes entry pinot Pinot connector

Development

Successfully merging this pull request may close these issues.

4 participants

Comments