Simon Kitching wrote:
Because of how the constructors are coded, unless I've missed
something, super.getMessage() will always return a non-null value, so
the else blocks will never execute. Did I read this correctly? Is
there any reason to keep the additional else blocks? I'd like to
remove them
In NotImplementedException, the getMessage() method has the following code:
public String getMessage() {
if (super.getMessage() != null) {
return super.getMessage();
} else if (cause != null) {
return cause.toString();
} else {
On Sun, 2005-07-17 at 19:05 -0400, Steven Caswell wrote:
In NotImplementedException, the getMessage() method has the following code:
public String getMessage() {
if (super.getMessage() != null) {
return super.getMessage();
} else if (cause != null) {