okarm
12/06/2024, 1:01 PMUseless call on not null type which reports the likes of String?.orEmpty on not-null variables. Is there a way to extend this inspection to user functions? I have a helper BigDecimal?.orZero() = this ?: BigDecimal.ZERO and I'd like the IDE to report useless calls for it.bod
12/06/2024, 1:06 PMokarm
12/06/2024, 1:29 PMDmitry Kandalov
12/10/2024, 10:11 AMBigDecimal.ONE.orZero() out-of-the-box because ONE is a platform type. It will only work if you tweak the inspection code or do BigDecimal.ONE!!.orZero().okarm
12/10/2024, 10:31 AM