replace getMethod("new").getReturn() with getInstance()

This commit is contained in:
erik-krogh
2022-10-17 09:35:44 +02:00
parent 5f826d0eef
commit 191efdf6e0

View File

@@ -23,7 +23,7 @@ private class DigestCall extends Cryptography::CryptographicOperation::Range ins
or
this = digest(algo).getAMethodCall("file") // it's directly hashing the contents of a file, but that's close enough for us.
or
this = digest(algo).getMethod("new").getReturn().getAMethodCall(["digest", "update", "<<"])
this = digest(algo).getInstance().getAMethodCall(["digest", "update", "<<"])
}
override Cryptography::HashingAlgorithm getAlgorithm() { result = algo }