Skip to content

[Java] Why doesn's a method that returns void also have a DataFlow::Node associated with it? #5800

Answered by smowton
JLLeitschuh asked this question in Q&A
Discussion options

You must be logged in to vote

Dataflow nodes represent data flowing into or out of an instruction, and the dataflow node associated with a MethodAccess represents that method's result. When it is void-typed there is no result and so no Node to represent it.

If you're looking to trace dataflow to a callsite, you're looking for something flowing into either the qualifier or to some argument. Looking for a qualifier node or for an argument node is correct in this case.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JLLeitschuh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants