Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2504754

Browse files
committed
C#: Remove use of deprecated predicates.
1 parent 76454ed commit 2504754

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

csharp/ql/src/Stubs/Stubs.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,11 +400,11 @@ private string stubConstraints(TypeParameterConstraints tpc) {
400400
or
401401
tpc.hasRefTypeConstraint() and result = "class"
402402
or
403-
result = tpc.getATypeParameterConstraint().getName()
403+
result = tpc.getATypeConstraint().(TypeParameter).getName()
404404
or
405-
result = stubClassName(tpc.getAnInterfaceConstraint())
405+
result = stubClassName(tpc.getATypeConstraint().(Interface))
406406
or
407-
result = stubClassName(tpc.getClassConstraint())
407+
result = stubClassName(tpc.getATypeConstraint().(Class))
408408
}
409409

410410
private string stubTypeParameterConstraints(TypeParameter tp) {

0 commit comments

Comments
 (0)