Reading the (now properly) quoted text, you see that the explanation is clear. For every function that returns a value, you should be using that function in some way.
Their example even specifically refers to a File
method, delete()
. In this case, findbugs is most likely referring to your call to File.renameTo()
.
You should be checking the return value of this function and handling error (false
) accordingly.