New inspection: Unnecessarily strong cast

InspectionGadgets notified me about the line

telling me that "Declaration of ArrayList should probably
be weakened to List".

I modified the line as suggested into this:

Strangely enough, after this change I get no inspection
telling me that the cast could be weakened.

Is this available already somewhere? If not, I think it's
a reasonable addition to make.

/Mikael

1 comment
Comment actions Permalink


Good one. At present no such inspection is available either in IDEA or InspectionGadgets. Please submit a tracker request.

--Dave Griffith

0

Please sign in to leave a comment.