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

FP on S1948 when class has multiple bounds in parameter type

    Details

    • Type: False-Positive
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.7
    • Component/s: Rules
    • Labels:
      None

      Description

      Reproducer

      class Person6<T extends SomeInterface & Serializable> implements Serializable {
        T t; //Compliant
      }
      

      If we switch the order of the bounds in the type parameter, the warning is not shown:

      class Person6<T extends Serializable & SomeInterface> implements Serializable {
        T t; //Compliant
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                quentin.jaquier Quentin Jaquier
                Reporter:
                quentin.jaquier Quentin Jaquier
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: