Java: Add ArrayTypeAccess C-style predicate
未關閉
Java
question
- 主要語言
- CodeQL
- 星號
- 10.1k
- 分支
- 2.1k
- 平均合併
- 2 天 15 小時
- 30 天內合併 PR
- 141
描述
**Description of the issue**
Would it be possible to add a predicate to `ArrayTypeAccess` which returns whether the type access uses the C-style notation?
C-style array declarations are discouraged and you can severly decrease readability:
```
int[] a, b[];
int[] test()[] {
return null;
}
```
is equivalent to:
```
int[] a;
int[][] b;
int[][] test() {
return null;
}
```
See also [JLS 14 §10.2](https://docs.oracle.com/javase/specs/jls/se14/html/jls-10.html#jls-10.2)
貢獻指南
評估
這個 Issue 還沒有評估資料。