ENVY/QA User Guide : Code Critic : Method Reviews : Unnecessary #isNil or #notNil
Unnecessary #isNil or #notNil
Warns if #isNil or #notNil is sent to the receiver by itself; for example, self isNil is typically unnecessary.
D:\Documents\VAS Documentation Word\images\tips.gif
The receiver should know whether it is nil or not without sending a message to determine this. All objects, except the UndefinedObject, return false for the #isNil message, and return true for the #notNil message.
 
Last modified date: 05/19/2020