Skip to content

Indentation wrong in default case in a switch statement. #166

@hildrum

Description

@hildrum

If I have:

      case 3:
        return whatever;
      default:
        throw new IllegalArgumentException("oops");

and I run the google-java-format, it adds two spaces to the default and throw,

      case 3:
        return whatever;
        default:
          throw new IllegalArgumentException("oops");

This switch statement is inside a function defined in an enum.

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