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

SuppressWarnings Filter should remove issue of S3740 when "rawTypes" is used

    Details

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

      Description

      When using @SuppressWarnings("rawtypes"), we want to remove compiler warnings about raw types. Therefore, we should also suppress issues of S3740 asking to provide a parameter to the parameterized type. Using raw type is intended here.

       

        @SuppressWarnings("rawtypes")
        private void foo(List list) { 
          //                  ^^^^ issue by S3740 which should be filtered out
          // ...
        }
      

        Attachments

          Issue Links

            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: