google / google/google-java-format

Formatter fails with Javadoc on import

未關閉
#424 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Java
星號
6.2k
分支
937
平均合併
6 分鐘
30 天內合併 PR
3

描述

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;
}
```

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。