github / github/codeql

Java: FP in java/abstract-to-concrete-cast when typechecked against wildcard type

オープン
#1,531 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
false-positive Java
主要言語
CodeQL
スター
10.1k
フォーク
2.1k
平均マージ
2日 15時間
マージ済み PR(30日)
141

説明

See: https://discuss.lgtm.com/t/java-false-positive-imho-cast-from-abstract-to-concrete-collection/2168

It seems that this query does attempt to filter when such a typecheck is present, but only takes into account raw types and not parameterized types with wildcards.

Example: https://lgtm.com/projects/g/fschopp/java-types/snapshot/6a6a2e9ec45512ab691927bcd767e300bf968389/files/src/main/java/net/florianschoppmann/java/reflect/ImmutableList.java#x1d138b35162e042f:1

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

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

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