From 59ae6dd5f576456c77c94307f655de82bc3be32e Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Wed, 27 Mar 2024 15:07:58 +0000 Subject: [PATCH] Java: Add a couple of Oxford commas --- java/ql/src/Likely Bugs/Statements/MissingEnumInSwitch.ql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/ql/src/Likely Bugs/Statements/MissingEnumInSwitch.ql b/java/ql/src/Likely Bugs/Statements/MissingEnumInSwitch.ql index 0ebe0ebb0251..d1cdb8bdfbbb 100644 --- a/java/ql/src/Likely Bugs/Statements/MissingEnumInSwitch.ql +++ b/java/ql/src/Likely Bugs/Statements/MissingEnumInSwitch.ql @@ -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