Replace getDefaultOrNullDefaultCase with getDefaultCase

This commit is contained in:
Chris Smowton
2023-11-16 14:23:56 +00:00
parent 0bb051e08c
commit d2ff1baff0
7 changed files with 17 additions and 15 deletions

View File

@@ -14,5 +14,5 @@ where
switch.getExpr().getType() = enum and
missing.getDeclaringType() = enum and
not switch.getAConstCase().getValue() = missing.getAnAccess() and
not exists(switch.getDefaultOrNullDefaultCase())
not exists(switch.getDefaultCase())
select switch