Klitos Kyriacou
03/13/2022, 7:57 PMwriter().buffered()
which are both also inline, and the call boils down to something similar to this:
val x = OutputStreamWriter(this)
return if (x is BufferedWriter) x else BufferedWriter(x)
Now we know that the if
true branch will never be called in this case, so there is nothing we can do in our own code to test this branch. Is there a way to silence JaCoCo from outputing this false positive?Klitos Kyriacou
03/13/2022, 8:03 PMMatthew Gast
03/13/2022, 9:07 PMKlitos Kyriacou
03/13/2022, 9:55 PMKlitos Kyriacou
03/14/2022, 11:14 AM