Skip navigation
navurinv

Empty Catch Block

Posted by navurinv Jan 24, 2012

No indication that an exception has occurred!

Implementation inheritance is difficult to debug.

Ask yourself: “Is this a kind of…?”

Alternatives:

Prefer interface inheritance.

Prefer composition over inheritance.

navurinv

Returning null

Posted by navurinv Jan 24, 2012

Causes NullPointerExceptions.

Instead, return…

empty objects

custom-made “Null Objects”

Filter Blog