DRAFT
ChainedMethodsNotCalledFromOutside
Misconception:
In a chain of method calls such as o.m1().m2()
,
all methods are called on the object at the beginning of the chain
(o
in the example).
Incorrect
Chained methods are all called on the object at the beginning of the chain
Correct
Chained methods are called on the object that results from the previous call in the chain
Language
Java