Skip to content
Snippets Groups Projects
Commit f6b75e98 authored by Kristof Szabados's avatar Kristof Szabados
Browse files

reduced scope


Signed-off-by: default avatarkristof <Kristof.Szabados@ericsson.com>
parent 3f1a5d93
No related branches found
No related tags found
No related merge requests found
......@@ -94,7 +94,7 @@ public class RiskFactorCalculator {
final int loc = n.intValue();
int riskFactor = 0;
int actualS, baseS, relativeOccurrene;
int relativeOccurrene;
for (final ProblemType marker : USED_MARKERS) {
final Integer count = smellCount.get(marker.toString());
if (count == null) {
......@@ -104,8 +104,8 @@ public class RiskFactorCalculator {
if (count.intValue() == 0) {
relativeOccurrene = 0;
} else {
actualS = loc / count;
baseS = marker.getBaseLine();
int actualS = loc / count;
int baseS = marker.getBaseLine();
if (actualS == 0) {
relativeOccurrene = 0;
} else if (actualS > baseS) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment