File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
csharp/ql/lib/semmle/code/csharp Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ private class RecordConstructorFlowRequiredSummaryComponentStack extends Require
159
159
exists ( Property p |
160
160
recordConstructorFlow ( _, _, p ) and
161
161
head = SummaryComponent:: property ( p ) and
162
- this = SummaryComponentStack:: singleton ( SummaryComponent :: return ( ) )
162
+ this = SummaryComponentStack:: return ( )
163
163
)
164
164
}
165
165
Original file line number Diff line number Diff line change @@ -29,8 +29,7 @@ class SystemTextStringBuilderClass extends SystemTextClass {
29
29
/** Clear content for `System.Text.StringBuilder.Clear`. */
30
30
private class SystemTextStringBuilderClearFlow extends SummarizedCallable {
31
31
SystemTextStringBuilderClearFlow ( ) {
32
- this .getDeclaringType ( ) instanceof SystemTextStringBuilderClass and
33
- this .hasName ( "Clear" )
32
+ this = any ( SystemTextStringBuilderClass s ) .getAMethod ( "Clear" )
34
33
}
35
34
36
35
override predicate clearsContent ( ParameterPosition pos , DataFlow:: Content content ) {
You can’t perform that action at this time.
0 commit comments