Uploaded image for project: 'Java'
  1. Java
  2. SONARJAVA-243

Rule: Collection.isEmpty() should be used to test if the collection is empty or not

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4
    • Component/s: Rules
    • Labels:
      None

      Activity

      Hide
      freddy.mallet Freddy Mallet added a comment -

      Works well Dinesh but we generate some false-positives on classes which doesn't implements the Collection interface. We need to discuss this point.

      Show
      freddy.mallet Freddy Mallet added a comment - Works well Dinesh but we generate some false-positives on classes which doesn't implements the Collection interface. We need to discuss this point.
      Hide
      dinesh.bolkensteyn Dinesh Bolkensteyn added a comment -

      We accept that false positive for now.

      Show
      dinesh.bolkensteyn Dinesh Bolkensteyn added a comment - We accept that false positive for now.

        People

        • Assignee:
          dinesh.bolkensteyn Dinesh Bolkensteyn
          Reporter:
          freddy.mallet Freddy Mallet
        • Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: