Skip to content

[java] Fix #7027: New rule: LongLiteralEndingWithLowercaseL - #7030

Merged
UncleOwen merged 7 commits into
mainfrom
copilot/implement-long-literal-rule
Sep 6, 2026
Merged

UncleOwen merged 7 commits into
mainfrom
copilot/implement-long-literal-rule

Conversation

Copilot AI commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Lowercase l on Java long literals is easy to misread as 1. This adds an Error Prone XPath rule to flag that suffix style and surfaces it in the Java ruleset.

Related issues

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by github actions)
  • Added (in-code) documentation (if needed)

Copilot AI linked an issue Sep 4, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add new rule for long literal ending with lowercase l Add XPath rule for lowercase long literal suffixes in Java Sep 4, 2026
Copilot AI requested a review from zbynek September 4, 2026 16:15
@zbynek zbynek changed the title Add XPath rule for lowercase long literal suffixes in Java [java] new rule: LongLiteralEndingWithLowercaseL Sep 4, 2026
@zbynek
zbynek marked this pull request as ready for review September 4, 2026 18:08
@pmd-actions-helper

pmd-actions-helper Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Documentation Preview

Compared to main:
This changeset changes 0 violations,
introduces 117 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 16 errors and 9 configuration errors.
There are 0 changed duplications, 0 new duplications and 0 removed duplications.
There are 0 changed CPD errors, 0 new CPD errors and 0 removed CPD errors.

Regression Tester Report

(comment created at 2026-09-05 22:46:27+00:00 for c043e95)

@UncleOwen

Copy link
Copy Markdown
Member

And we need a changelog entry :)

@UncleOwen UncleOwen added this to the 7.28.0 milestone Sep 6, 2026

@UncleOwen UncleOwen 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!

@UncleOwen
UncleOwen merged commit 253d2b8 into main Sep 6, 2026
22 checks passed
@UncleOwen
UncleOwen deleted the copilot/implement-long-literal-rule branch September 6, 2026 17:20
@adangel adangel added the a:new-rule Proposal to add a new built-in rule label Sep 6, 2026
@adangel adangel changed the title [java] new rule: LongLiteralEndingWithLowercaseL [java] Fix #7027: New rule: LongLiteralEndingWithLowercaseL Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a:new-rule Proposal to add a new built-in rule

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[java] New rule: LongLiteralEndingWithLowercaseL

4 participants