LGTM.com - false positive: Java Set equals()
オープン
false-positive
Java
- 主要言語
- CodeQL
- スター
- 10.1k
- フォーク
- 2.1k
- 平均マージ
- 2日 15時間
- マージ済み PR(30日)
- 141
説明
**Description of the false positive**
"Call to equals() comparing incomparable types AbstractSet and ImmutableSet."
This actually works just fine, because AbstractSet and ImmutableSet only use the Set<> interface's semantics, and do not rely on what implementation of Set they are.
**URL to the alert on the project page on LGTM.com**
https://lgtm.com/projects/g/google/error-prone/snapshot/30c381a82e01a40b3f7f255ed05d0857bcf0d35e/files/core/src/main/java/com/google/errorprone/bugpatterns/UnnecessaryDefaultInEnumSwitch.java?sort=name&dir=ASC&mode=heatmap#L96
コントリビューションガイド
評価
この issue はまだ評価されていません。