Skip to content

Commit 59ae6dd

Browse files
committed
Java: Add a couple of Oxford commas
1 parent 60b5e49 commit 59ae6dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/ql/src/Likely Bugs/Statements/MissingEnumInSwitch.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ EnumConstant nthMissing(SwitchStmt switch, int index) {
3030
predicate first3(string msg, SwitchStmt switch, EnumConstant e1, EnumConstant e2, EnumConstant e3) {
3131
exists(int n | n = strictcount(nthMissing(switch, _)) |
3232
if n > 3
33-
then msg = "Switch statement does not have a case for $@, $@, $@ or " + (n - 3) + " more."
34-
else msg = "Switch statement does not have a case for $@, $@ or $@."
33+
then msg = "Switch statement does not have a case for $@, $@, $@, or " + (n - 3) + " more."
34+
else msg = "Switch statement does not have a case for $@, $@, or $@."
3535
) and
3636
e1 = nthMissing(switch, 1) and
3737
e2 = nthMissing(switch, 2) and

0 commit comments

Comments
 (0)