Answering myself. Maybe someone avoids spending searching solution. Key point was moving Cobertura->Jacoco, as I wanted to keep both coverage tools in work together. There were Cobertura-Instrumented classes in classpath and these were causing these problems for jacoco (most probably there was compiled into such info that was causing problems), after removing cobertura totally, I am getting similar results in Jacoco that were previously with Cobertura
Villu pühapäev, 16. august 2015 0:02.34 UTC+3 kirjutas [email protected]: > Hi, > > I am trying to move from Cobertura to jacoco and get huge branch coverage > difference. Started to investigate it and.. > > Can someone explain what I am missing. > > I have finally block in my code and it is: > } finally { > try { > if (rs != null) { > rs.close(); > } > if (st != null) { > st.close(); > } > if (con != null) { > con.close(); > } > > } catch (SQLException ex) { > ex.printStackTrace(); > } > } > > And on that jacoco report thinks that > > if (rs != null) { >> 0/8 branches > rs.close(); >>0/12 branches > And so on. What are these 12 branches in rs.close() sentence? And in if I can > get 2 (rs is NULL or isn't NULL) > > Br, > > Villu -- You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/c31fbb75-7095-4823-985a-c4ed62502442%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
