Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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