I am mostly interested in Java, but I think it\'s a general question. Recently I\'ve been working with Arquillian framework (ShrinkWrap) that uses a lot of meth
ShrinkWrap
If you prefer immutability and functional programming, you never return void.
void
A function without return value is only called for its side-effect.
Of course there are situations where this is not applicable, but a function returning void could be considered as a hint to try it in a different way.