Skip to content

Commit

Permalink
Java: Add a couple of Oxford commas
Browse files Browse the repository at this point in the history
  • Loading branch information
igfoo committed Mar 27, 2024
1 parent 60b5e49 commit 59ae6dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java/ql/src/Likely Bugs/Statements/MissingEnumInSwitch.ql
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ EnumConstant nthMissing(SwitchStmt switch, int index) {
predicate first3(string msg, SwitchStmt switch, EnumConstant e1, EnumConstant e2, EnumConstant e3) {
exists(int n | n = strictcount(nthMissing(switch, _)) |
if n > 3
then msg = "Switch statement does not have a case for $@, $@, $@ or " + (n - 3) + " more."
else msg = "Switch statement does not have a case for $@, $@ or $@."
then msg = "Switch statement does not have a case for $@, $@, $@, or " + (n - 3) + " more."
else msg = "Switch statement does not have a case for $@, $@, or $@."
) and
e1 = nthMissing(switch, 1) and
e2 = nthMissing(switch, 2) and
Expand Down

0 comments on commit 59ae6dd

Please sign in to comment.