Though it is supported, You should not use "
" without parenthesis for code block.
You should use:
and you should not use:
One of my colleagues encountered the problem due to the unparenthesized "
The story goes like this:
His code was like this:
System.out.println("This is log message to be printed on Console");
for( int i = 0; i < 10; i ++ )
For final release, he globally replaced the
so that all SOP statements would be commented.
But due the use of unparenthesized "
loop went inside the
which was not desirable.
and the product started crashing.....
So the situation was ....Product was running properly if we keep all SOP.
After scanning the code throughly, we found out the culprit .....
with no code block parenthesis :omg: