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

FP S1698/== comparison of object : Parametrized method should have unresolved types

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8
    • Component/s: None
    • Labels:
      None

      Description

      The following class instanciated with MyClass<MyEnum> will raise a false positive issue :

      class MyClass<T> {
      void foo() {
        if(myMethod(this) == MyEnum.Value) {...}
      }
      
      T myMethod(MyClass<T> instance){}
      }
      

        Attachments

          Activity

            People

            Assignee:
            benzonico OLD - Nicolas Peru
            Reporter:
            benzonico OLD - Nicolas Peru
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: