andy
andy copied to clipboard
Eliminated Boolean Arguments From getNumberOfPassedChecks and getTotalNumberOfChecks
Closes #219.
Refactored a few methods in the CodeChecksResult class:
-
getNumberOfPassedChecks()is nowgetWeightedNumberOfPassedChecks(); - removed
getNumberOfPassedChecks(boolean includeWeight); - added
getUnweightedNumberOfPassedChecks(); -
getTotalNumberOfChecks()is nowgetTotalWeightedNumberOfChecks(); - removed
getTotalNumberOfChecks(boolean includeWeight); - added
getTotalUnweightedNumberOfChecks().
Fixed the method calls, of course, and the behaviour is exactly the same. I wasn't sure if I should refactor getTotalNumberOfChecks, in addition to getNumberOfPassedChecks, but I did anyway, since it seemed sensible.