github / github/codeql

Java: `Nullness.unboxed` does not use `ConversionSite`

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

説明

The private predicate `unboxed` of `semmle.code.java.dataflow.Nullness` seems to match locations where an implicit conversion from boxed to primitive type occurs:
https://github.com/github/codeql/blob/a7030c7fed4811f63c70d8fe67941f67b045b3aa/java/ql/src/semmle/code/java/dataflow/Nullness.qll#L54

Would it maybe be better to use `ConversionSite` of `semmle.code.java.Conversions` for this to avoid code duplication, or was this done intentionally (for performance reasons)?

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

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

評価

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

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

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