Uploaded image for project: 'SonarJava'
  1. SonarJava
  2. SONARJAVA-1369

S2275: IndexOutOfBoundsException when using '<' operator

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.7
    • Fix Version/s: 3.8
    • Component/s: Rules
    • Labels:
      None

      Description

      The following code raise an IndexOutOfBoundsException when analysed:

      String.format("log/protocol_%tY_%<tm_%<td_%<tH_%<tM_%<tS.zip", new Date());

        Attachments

          Activity

            People

            • Assignee:
              nicolas.peru Nicolas Peru
              Reporter:
              michael.gumowski Michael Gumowski
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: