Update FindIncorrectlyUsedExceptions.ql

This commit is contained in:
ihsinme
2021-07-28 18:46:49 +03:00
committed by GitHub
parent 8aac5b339e
commit 2d5a263799

View File

@@ -44,5 +44,7 @@ where
not fc instanceof ConstructorDirectInit and
not fc.getEnclosingStmt() instanceof DeclStmt and
not fc instanceof ConstructorDelegationInit and
not fc.getParent() instanceof Initializer and
not fc.getParent() instanceof AllocationExpr and
msg = "This object does not generate an exception."
select fc, msg