google / google/google-java-format

Either require semicolons at the end of enum declarations, or don't

Open
#243 3 comments 0 reactions 0 assignees View on GitHub
non-whitespace
Dominant language
Java
Stars
6.2k
Forks
937
Avg merge
6m
Merged PRs (30d)
3

Description

Currently, gjf accepts either:

```java
enum Foo {
BAR,
BAZ;
}
```

or:

```java
enum Foo {
BAR,
BAZ
}
```

I had a code reviewer tell me to remove the semicolon. I really do not care one way or another, but I would rather not have to discuss it during code reviews. This is exactly what gjf is for, so it'd be nice to take a stand one way or the other.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.