@@ -67,7 +67,7 @@ class Endpoint extends DataFlow::MethodNode {
67
67
*/
68
68
bindingset [ this ]
69
69
string getParameterTypes ( ) {
70
- // For now, return the names of postional parameters. We don't always have type information, so we can't return type names.
70
+ // For now, return the names of postional and keyword parameters. We don't always have type information, so we can't return type names.
71
71
// We don't yet handle splat params or block params.
72
72
result =
73
73
"(" +
@@ -98,10 +98,7 @@ class Endpoint extends DataFlow::MethodNode {
98
98
99
99
/** Holds if this API is a known neutral. */
100
100
pragma [ nomagic]
101
- predicate isNeutral ( ) {
102
- none ( )
103
- // this instanceof FlowSummaryImpl::Public::NeutralCallable
104
- }
101
+ predicate isNeutral ( ) { none ( ) }
105
102
106
103
/**
107
104
* Holds if this API is supported by existing CodeQL libraries, that is, it is either a
@@ -161,7 +158,7 @@ class SourceCallable extends DataFlow::CallableNode {
161
158
exists ( string type , string path , string method |
162
159
method = path .regexpCapture ( "(Method\\[[^\\]]+\\]).*" , 1 ) and
163
160
Util:: pathToMethod ( this , type , method ) and
164
- sinkModel ( type , path , _)
161
+ sourceModel ( type , path , _)
165
162
)
166
163
}
167
164
}
0 commit comments