Skip to content

Incorrect column position calculation for literals containing symbols #55

@Anmol202005

Description

@Anmol202005

Follow up of: #53

public class test {
  
    private long minLong = -9223372036854775808l;    //false negative
    private Long negativeLong = -5678l;    //false negative
}

Checkstyle does not account for symbol characters(+, -) when calculating column positions of a literal,
therefore in the upperEll recipe Column positions are off by the number of symbols present in literal values

Fix: Updated method to count and add symbol characters to the base column offset calculation.

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