From: Charles H. <ch...@ho...> - 2010-12-15 04:07:34
|
Julien, The java compiler is generating a bridge method which is not being called by your tests. See http://www.angelikalanger.com/GenericsFAQ/FAQSections/TechnicalDetails.html#FAQ103 and http://www.java2s.com/Code/Java/Language-Basics/JavagenericAsituationthatcreatesabridgemethod.htm for more information about bridge methods. chas On 12/9/2010 7:06 AM, Julien HENRY wrote > Hi, > > Sonar is using Cobertura to compute code coverage. Could you please explain me > why in this case the line is reported as not covered? > http://nemo.sonarsource.org/resource/index/com.googlecode.lambdaj:lambdaj:ch.lambdaj.collection.LambdaMap?metric=coverage > > > public class LambdaMap<K, V> implements Map<K, V>, Cloneable {Thanks, > > Julien |