Skip to content

Commit

Permalink
Fix sonar warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
smithkm committed Dec 12, 2024
1 parent 8dfe801 commit b46df2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ public static double classToIndex(SiteIndexSpecies spIndex, char siteClass, char
default:
throw new ForestInventoryZoneException("Unknown FIZ code: " + forestInventoryZone);
}
break;

case SI_SPEC_HWI:
switch (siteClass) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2371,7 +2371,8 @@ private static double ageAndSiteIndexToHeight(
}
}

@SuppressWarnings("java:S3776")
@SuppressWarnings({ "java:S3776", "java:S128" // This is using case fall through. The lack of breaks is intentional.
})
private void writeCurrentPolygon(int startYear, int currentYear, int endYear) throws ProcessingException {

try {
Expand Down

0 comments on commit b46df2b

Please sign in to comment.