[slf4j-dev] Common question to return statement
Ceki Gülcü
listid at qos.ch
Tue Feb 7 13:34:10 CET 2006
Hello Boris,
As far as I know there is no difference between the two forms. "return x;"
and "return (x);" should result in the same byte code as well. Consider the
expression 2 and (2). Imo, they should be strictly equivalent.
I do not know why some parts of SLF4J use the first form and other parts
the second form.
Cheers,
At 11:09 PM 2/6/2006, Boris Unckel wrote:
>Hello,
>
>I have found several return (returnvalue); statements in slf4j like return
>(attributes.get(name));.
>What is the difference between return retvalue; and return (retvalue); -
>with and without braces?
>Is there no technical difference and this is just "style and fashion"?
>Is the bytecode the same or different?
>
>Regards
>Boris
--
Ceki Gülcü
More information about the slf4j-dev
mailing list