Skip to content

Commit 45f3365

Browse files
smowtonaschackmull
andauthored
Apply suggestions from code review
Note value-preserving functions can't be constructors Co-authored-by: Anders Schack-Mulligen <[email protected]>
1 parent 990bdc2 commit 45f3365

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

java/ql/src/semmle/code/java/dataflow/FlowSteps.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,24 @@ private module Frameworks {
2121
}
2222

2323
/**
24-
* A method or constructor that returns the exact value of one of its parameters or the qualifier.
24+
* A method that returns the exact value of one of its parameters or the qualifier.
2525
*
2626
* Extend this class and override `returnsValue` to add additional value-preserving steps through a
2727
* method that should be added to the basic local flow step relation.
2828
*
2929
* These steps will be visible for all global data-flow purposes, as well as via
3030
* `DataFlow::Node.getASuccessor` and other related functions exposing intraprocedural dataflow.
3131
*/
32-
abstract class ValuePreservingCallable extends Callable {
32+
abstract class ValuePreservingMethod extends Method {
3333
/**
34-
* Holds if this callable returns precisely the value passed into argument `arg`.
34+
* Holds if this method returns precisely the value passed into argument `arg`.
3535
* `arg` is a parameter index, or is -1 to indicate the qualifier.
3636
*/
3737
abstract predicate returnsValue(int arg);
3838
}
3939

4040
/**
41-
* A method or constructor that returns the exact value of its qualifier (e.g., `return this;`)
41+
* A method that returns the exact value of its qualifier (e.g., `return this;`)
4242
*
4343
* Extend this class and override `returnsValue` to add additional value-preserving steps through a
4444
* method that should be added to the basic local flow step relation.

0 commit comments

Comments
 (0)