Skip to content

Commit

Permalink
try noscan comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed Feb 7, 2024
1 parent ccf93fc commit 3e31608
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/matsim/prepare/population/AssignIncome.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ public void run(Person person) {
double income = 0.;
double rndDouble = rnd.nextDouble();

// Disable SonarQube code duplication for this block
// BEGIN-NOSCAN

if (rndDouble <= 0.1) income = 826.;
else if (rndDouble <= 0.2) income = 1142.;
else if (rndDouble <= 0.3) income = 1399.;
Expand All @@ -54,6 +57,7 @@ public void run(Person person) {
else {
income = 4329.;
}
// END-NOSCAN

PersonUtils.setIncome(person, income);
}
Expand Down

0 comments on commit 3e31608

Please sign in to comment.