google / google/google-java-format

Formatter fails with Javadoc on import

Open
#424 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6.2k
Forks
937
Avg merge
6m
Merged PRs (30d)
3

Description

The annotation is wrong for the Java file, but this is a compiling, small reproducing case. The following file complains about syntax errors:

```java
package foo;

import groovy.transform.CompileStatic;

/**
* Created.
*/
import java.util.ArrayList;

/**
* Created.
*/
@CompileStatic
public class Broken {
ArrayList list;
}
```

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.