Skip to content

Commit e3edea2

Browse files
smowtonaschackmull
andauthored
Apply simple suggestions from code review
Co-authored-by: Anders Schack-Mulligen <[email protected]>
1 parent efb63aa commit e3edea2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

java/ql/lib/semmle/code/java/Expr.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1879,7 +1879,7 @@ class VarRead extends VarAccess {
18791879
/** DEPRECATED: Alias for `VarRead`. */
18801880
deprecated class RValue = VarRead;
18811881

1882-
/** A method access is an invocation of a method with a list of arguments. */
1882+
/** A method call is an invocation of a method with a list of arguments. */
18831883
class MethodCall extends Expr, Call, @methodaccess {
18841884
/** Gets the qualifying expression of this method access, if any. */
18851885
override Expr getQualifier() { result.isNthChildOf(this, -1) }
@@ -1928,7 +1928,7 @@ class MethodCall extends Expr, Call, @methodaccess {
19281928
}
19291929

19301930
/**
1931-
* Holds if this is a method access to an instance method of `this`. That is,
1931+
* Holds if this is a method call to an instance method of `this`. That is,
19321932
* the qualifier is either an explicit or implicit unqualified `this` or `super`.
19331933
*/
19341934
predicate isOwnMethodCall() { Qualifier::ownMemberAccess(this) }
@@ -1937,7 +1937,7 @@ class MethodCall extends Expr, Call, @methodaccess {
19371937
deprecated predicate isOwnMethodAccess() { this.isOwnMethodCall() }
19381938

19391939
/**
1940-
* Holds if this is a method access to an instance method of the enclosing
1940+
* Holds if this is a method call to an instance method of the enclosing
19411941
* class `t`. That is, the qualifier is either an explicit or implicit
19421942
* `t`-qualified `this` or `super`.
19431943
*/

java/ql/lib/semmle/code/java/JDK.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ class MethodSystemGetProperty extends ValuePreservingMethod {
259259
}
260260

261261
/**
262-
* An access to a method named `getProperty` on class `java.lang.System`.
262+
* A call to a method named `getProperty` on class `java.lang.System`.
263263
*/
264264
class MethodCallSystemGetProperty extends MethodCall {
265265
MethodCallSystemGetProperty() { this.getMethod() instanceof MethodSystemGetProperty }

0 commit comments

Comments
 (0)