Skip to content

sonar:AddCurlyBrackets duplicates code inside a switch statement. #3

@leukim

Description

@leukim

Applying the transformation to a piece of code with a switch condition does not wrap up the whole code inside a case and duplicates the non-wrapped code inside the braces, effectively producing compilation errors (see attached screenshot)
duplicated-code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions