Skip to content

Commit 74641cc

Browse files
authored
Simplify test for no-arg constructor
1 parent f8994d0 commit 74641cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/src/experimental/Security/CWE/CWE-327/Azure/UnsafeUsageOfClientSideEncryptionVersion.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ predicate isCreatingOutdatedAzureClientSideEncryptionObject(Call call, Class c)
2424
(
2525
type = "EncryptedBlobClientBuilder" and
2626
package = "com.azure.storage.blob.specialized.cryptography" and
27-
not exists(Expr e | e = call.getArgument(0))
27+
constructor.hasNoParameters()
2828
or
2929
type = "BlobEncryptionPolicy" and package = "com.microsoft.azure.storage.blob"
3030
)

0 commit comments

Comments
 (0)