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

0
Avatar
Permanently deleted user

"Result of object allocation ignored"

--Dave Griffith

0
Avatar
Permanently deleted user

Thank you!

RRS

0

请先登录再写评论。