About '{'

16 views
Skip to first unread message

abhigu...@gmail.com

unread,
Jul 27, 2015, 7:11:05 AM7/27/15
to JaCoCo and EclEmma Users
Hi,
In one class I have two methods, so I have 2 instance of '}' , in one place it show '}' as covered , but in other place is show '}' as white line.
Note :- My both methods are covered , only problem is '}'. I want to know when jacoco consider '}' as white line ?


Thanks
Abhishek

Marc Hoffmann

unread,
Jul 27, 2015, 11:44:38 AM7/27/15
to jac...@googlegroups.com
Hi Abhishek,

hard to tell without seeing a screen shot.

But typically if there is no expicit return in a void method the Java
compiler assignes a implicit return statement to the line with the
closing brace. This might be the case for you.

Regards,
-marc

abhigu...@gmail.com

unread,
Jul 28, 2015, 5:32:49 AM7/28/15
to JaCoCo and EclEmma Users, hoff...@mountainminds.com

Hi Marc,
Yes you are right, thanks for great information.

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages