Inspection for Discarded Constructor Return?

Hi,

I a whirlwind of editing, I wound up with this bit of code without noticing it (until I began testing):

();
]]>


Naturally, what I wanted was this:

();
]]>


Is there an inspection that I could enable that would flag this sort of highly suspect code?

Randall Schulz

2 comments
Comment actions Permalink

"Result of object allocation ignored"

--Dave Griffith

0

Please sign in to leave a comment.