Skip to content

Recipe to autofix UpperEllCheck. #1

@Anmol202005

Description

@Anmol202005

Implement an OpenRewrite recipe to automatically fix Checkstyle UpperEll violations by converting lowercase 'l' suffix in long literals to uppercase 'L'.

UpperEll Check: https://checkstyle.sourceforge.io/checks/misc/upperell.html#UpperEll .

Example

// Before
long value = 123l;

// After  
long value = 123L;

Tasks:

  1. Create UpperEll recipe class
  2. Add visitor to transform long literals
  3. Write tests using OpenRewrite test framework
  4. Add conditional execution (only when UpperEll check is enabled)
  5. Package the recipe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions