As I mentioned peviously, I added an empty statement to catch blocks
because an empty catch block is not a good thing and an empty
statement is a way to at least show there was a modicum of thought to
having the catch do nothing. The empty statement works for some style
checkers like Checkstyle
As I mentioned peviously, I added an empty statement to catch blocks
because an empty catch block is not a good thing and an empty
statement is a way to at least show there was a modicum of thought to
having the catch do nothing. The empty statement works for some style
checkers like Checkstyle
I am +1 on removing the ; and making the style checker behave with
reason.
IMHO, an empty catch block is OK IFF it is { // documented in-line }. I
have my Eclipse settings set to warn me of this but I know not everyone
uses Eclipse.
Gary
-Original Message-
From: Steven Caswell