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

Fix FPs in S4276 when the generic argument left is a primitive wrapper

    Details

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

      Description

      These cases should not be reported if the generic type left is a primitive wrapper (Integer, Long, Double, Short, Character, Byte, Float):

      Current Interface Preferred Interface
      BiConsumer<T,Integer> ObjIntConsumer<T>
      BiConsumer<T,Long> ObjLongConsumer<T>
      BiConsumer<T,Double> ObjDoubleConsumer<T>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                margarita.nedzelska Margarita Nedzelska
                Reporter:
                margarita.nedzelska Margarita Nedzelska
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: