Skip to content

sonar:UseCollectionIsEmpty inverts condition #7

@dalejunas

Description

@dalejunas

UseCollectionIsEmpty violation fix inverts condition
from
if( list1.size() > 0 ){ ... }

to
if( list1.isEmpty() ){ ... }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions