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 {
12271227
12281228 /**
12291229 * 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.
12321233 */
12331234 RefType getReceiverType ( ) {
12341235 exists ( Stmt stmt , Expr resultExpr |
You can’t perform that action at this time.
0 commit comments