GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [java] New rule: LongLiteralEndingWithLowercaseL · Issue #7027 · pmd/pmd

[java] New rule: LongLiteralEndingWithLowercaseL #7027

New issue
Copy link
New issue
Copy link
Closed
#7030
Closed
[java] New rule: LongLiteralEndingWithLowercaseL#7027
#7030
Copy link
Assignees
zbynekcopilot-swe-agent
Labels
a:new-ruleProposal to add a new built-in rule
Milestone
7.28.0

Description

@zbynek
zbynek
opened on Sep 2, 2026
Issue body actions

Proposed Rule Name: LongLiteralEndingWithLowercaseL

Proposed Category: Error Prone

Description:

To avoid confusion between 1 and l, use L to indicate long literals. The proposed rule name is aligned with IntelliJ

https://www.jetbrains.com/help/inspectopedia/LongLiteralEndingWithLowercaseL.html

Code Sample:

class Longs {
  long bad = 1l; // bad, may be confusing with some fonts
  long good = 1L; // good
}

Possible Properties:

none


Currently possible as XPath rule using //NumericLiteral[matches(@Image,'.*l')]

Reacted by Sören Glimm
Reacted by Copilot

Activity

  1. zbynek
    added
    a:new-ruleProposal to add a new built-in rule
    on Sep 2, 2026
  2. zbynek
    assigned
    Copilot
    and
    zbynek
    on Sep 4, 2026
  3. Copilot
    linked a pull request that will close this issue[java] Fix #7027: New rule: LongLiteralEndingWithLowercaseL #7030on Sep 4, 2026
  4. UncleOwen
    added this to the 7.28.0 milestone on Sep 6, 2026
  5. UncleOwen
    closed this as completedin #7030on Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • Copilot
  • @zbynek
    zbynek

Labels

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

Type

No type

Projects

No projects

    Milestone

    • 7.28.0

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.