Commit 6ffddb3b authored by Roxane Kang Maréchal's avatar Roxane Kang Maréchal
Browse files

Updated comment

parent 560b99b6
......@@ -402,5 +402,3 @@ rule MesureAvoidFieldNameMatchingMethodName(class : java!ClassDeclaration, metho
noc;
}
}
--
\ No newline at end of file
......@@ -13,7 +13,7 @@ helper def: missingBreakInSwitch(): Set(smm!Measure) =
helper def: switchStatementContainsMissingBreaks(ss: java!SwitchStatement): Boolean =
-- If the number of switch cases (omitting those that empty => indicates intentional fallout) is bigger than
-- the number of break statements => we don't have a break statement for every switch case
-- in that case, we return true, else false
-- in that case, return true, else false
(thisModule.nbBranchesOfASwitchStatement(ss) - thisModule.nbIntentionalFallThroughOfASwitchStatement(ss)) > thisModule.nbBreakStatementOfASwitchStatement(ss)
;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment