The metric of cyclomatic complexity is a bit difficult to understand for me, so I looked for relevant information, especially the official description of jacoco. In the information I noticed that jcoco expects to calculate the cyclomatic complexity using the following formula:
But after I looked through the relevant code, I found that the actual implementation was not completely consistent with the description. The code actually ended with +1. Is there something I overlooked here? Or does the document need some modifications?nt