I have a weird conundrum when using Gradle 8.10: ...
# plugin-development
k
I have a weird conundrum when using Gradle 8.10:
Copy code
fun Provider<String>.valueToInt() = map { it.toIntOrNull() }
appears to be flagged as an error, even though documentation says that it should accept a
(String) -> Int?
which would be transformed to a
Transformer<Int, String>
if I'm reading things right. What's going on here?
p
Yes, IntelliJ shows an error because the nullable annotation isn’t passed to IntelliJ but it compiles fine.
k
Is there an IntelliJ issue relating to the matter? Having to ignore red squiggly lines is a bit unsettling.