github / github/codeql

Java: Add ArrayTypeAccess C-style predicate

オープン
#3,624 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
Java question
主要言語
CodeQL
スター
10.1k
フォーク
2.1k
平均マージ
2日 15時間
マージ済み PR(30日)
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。