Simplify test for no-arg constructor

This commit is contained in:
Chris Smowton
2022-07-11 11:01:19 +01:00
committed by GitHub
parent f8994d04d6
commit 74641ccfee

View File

@@ -24,7 +24,7 @@ predicate isCreatingOutdatedAzureClientSideEncryptionObject(Call call, Class c)
(
type = "EncryptedBlobClientBuilder" and
package = "com.azure.storage.blob.specialized.cryptography" and
not exists(Expr e | e = call.getArgument(0))
constructor.hasNoParameters()
or
type = "BlobEncryptionPolicy" and package = "com.microsoft.azure.storage.blob"
)