8 branches for try with resources - jacoco coverage possible?
问题 I've got some code that uses try with resources and in jacoco it's coming up as only half covered. All the source code lines are green, but I get a little yellow symbol telling me that only 4 of 8 branches are covered. I'm having trouble figuring out what all the branches are, and how to write code that covers them. Three possible places throw PipelineException . These are createStageList() , processItem() and the implied close() Not throwing any exceptions, throwing an exception from