Files
detekt/detekt-rules-errorprone
Dominic Zirbel 4b30c6be87 CastToNullableType: allow casting null keyword (#4907)
Fix a false positive for CastToNullableType for casting a literal `null` to a nullable type. This can be necessary when providing null as a function argument where the incoming type is parameterized. In this case using e.g. `null as? String` is less meaningful and generates a compiler warning that the cast cannot succeed.
2022-06-04 13:25:06 +02:00
..