Thanks to visit codestin.com
Credit goes to github.com

Skip to content

After SpotBugs Maven Plugin upgrade to version 4.9.5.0 there is a false/positive RANGE_ARRAY_INDEX finding #3711

@marcel-hoell

Description

@marcel-hoell

Since updating to version 4.9.5.0 (before: 4.9.4.2) for the Spotbugs Maven Plugin, we receive the following error for the folowing Java code line:

  public @Nullable String provideTransactionName(@NotNull HttpServletRequest request) {
    return String.format("%s %s", request.getMethod(), request.getRequestURI());
  }

leads to error:

[ERROR] Medium: Array index is out of bounds: 2 [...] At XYZ.java:[line 21]At XYZ.java:[line 21] RANGE_ARRAY_INDEX

I can't find any error in this line, also it is a "no brainer" ;)

Thank you in advance!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions