this.foo = (foo == null);
}
}
public void testImplicitSetterCostShouldNotBeDoubleCounted() throws Exception {
MetricComputer computer = new MetricComputer(new JavaClassRepository(), null, new RegExpWhiteList(), 1);
ClassCost cost = computer.compute(Setters.class.getCanonicalName());
MethodCost cost1 = cost.getMethodCost("void setFoo(java.lang.String)");
assertEquals(1, cost1.getTotalCost().getCyclomaticComplexityCost());
}