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

FP on S2694 when implemented/extended type is parameterized

    Details

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

      Description

      Implementation of RSPEC-2694 raise FPs when a the implemented interface or extended class is parameterized with the type variable of a parent generic type.

      class Generic<T> {
        abstract class A implements java.util.List<T> { } // FP - can not be made static, T depends of the instance of Generic
      }
      

        Attachments

          Activity

            People

            • Assignee:
              michael.gumowski Michael Gumowski
              Reporter:
              michael.gumowski Michael Gumowski
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: