0

I have a method with return statement like this:

return method(parameter 1, parameter 2) && method(parameter 2, parameter 1);\

However, when looking at my call tree, the second method is never being called (I see no calls with parameters like this). Can anyone explain why is this happening? Thanks

1 Answers1

1

Possible short-circuiting, meaning if method(parameter 1, parameter 2) evaluates to false then the second method will never be called.

See also

Sam
  • 1,542
  • 2
  • 13
  • 27