title: What is the difference between jacoco branch coverage and Sonar condition coverage?
body: <p>I'm trying to analyze java code with the SonarQube Scanner (version 3.1.0.1141).</p>
  
  <ul>
  <li>SonarQube version : 5.6.6</li>
  <li>Sonar Java plugin version : 4.12.0.11033</li>
  <li>jacoco version : 0.8.0</li>
  </ul>
  
  <p>I have filled the sonar-project.properties with those properties :</p>
  
  <pre><code># Sonar sources and metadata
  sonar.language=java
  sonar.sources=src/main
  sonar.java.source=1.8
  sonar.sourceEncoding=UTF-8
  sonar.java.binaries=target/classes
  sonar.java.libraries=target/lib
  
  sonar.tests=src/test
  sonar.java.coveragePlugin=jacoco
  sonar.junit.reportsPath=target/surefire-reports
  sonar.surefire.reportsPath=target/surefire-reports
  </code></pre>
  
  <p>While jacoco report gives me this result for one class :</p>
  
  <ul>
  <li>Coverage : <strong>84%</strong></li>
  <li>Branch Coverage : <strong>71%</strong></li>
  <li>Missed : <strong>9</strong></li>
  <li>Complexity : <strong>24</strong></li>
  <li>Missed : <strong>6</strong></li>
  <li>Lines : <strong>69</strong></li>
  <li>Missed : <strong>0</strong></li>
  <li>Methods : <strong>8</strong></li>
  <li>Missed : <strong>0</strong></li>
  <li>Classes : <strong>1</strong></li>
  </ul>
  
  <p>SonarQube displays the measures : </p>
  
  <ul>
  <li>Condition coverage <strong>62,5%</strong></li>
  <li>Coverage <strong>81,7%</strong></li>
  <li>Line coverage <strong>92,8%</strong></li>
  <li>Lines to cover <strong>69</strong></li>
  <li>Overall condition coverage <strong>62,5%</strong></li>
  <li>Overall coverage <strong>81,7%</strong></li>
  <li>Overall line coverage <strong>92,8%</strong></li>
  <li>Overall uncovered branches <strong>15</strong></li>
  <li>Overall uncovered lines <strong>5</strong></li>
  <li>Uncovered branches <strong>15</strong></li>
  <li>Uncovered lines <strong>5</strong></li>
  </ul>
  
  <p>According to the <a href="https://docs.sonarqube.org/display/SONAR/Metric+Definitions" rel="noreferrer">sonar metric definition page</a>, the sonar key for condition coverage is branch_coverage, so I thought condition and branch coverage are the same things.</p>
  
  <p>How to explain the different results?</p>