File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
java/ql/lib/semmle/code/java Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1227,8 +1227,9 @@ class MemberRefExpr extends FunctionalExpr, @memberref {
1227
1227
1228
1228
/**
1229
1229
* Gets the receiver type whose member this expression refers to. The result might not be
1230
- * the type which actually declares the member (makes a difference for inherited non-overridden
1231
- * methods).
1230
+ * the type which actually declares the member. For example, for the member reference `ArrayList::toString`,
1231
+ * this predicate has the result `java.util.ArrayList`, the type explicitly referred to, while
1232
+ * `getReferencedCallable` will have `java.util.AbstractCollection.toString` as result, which `ArrayList` inherits.
1232
1233
*/
1233
1234
RefType getReceiverType ( ) {
1234
1235
exists ( Stmt stmt , Expr resultExpr |
You can’t perform that action at this time.
0 commit comments