SonarQube Java
  1. SonarQube Java
  2. SONARJAVA-243

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

    Details

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

      Activity

      Hide
      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 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 added a comment -

      We accept that false positive for now.

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

        People

        • Assignee:
          Dinesh Bolkensteyn
          Reporter:
          Freddy Mallet
        • Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: