Re: [lang] NotImplementedException getMessage() method has unexecutable code

2005-07-18 Thread Stephen Colebourne
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

[lang] NotImplementedException getMessage() method has unexecutable code

2005-07-17 Thread Steven Caswell
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 {

Re: [lang] NotImplementedException getMessage() method has unexecutable code

2005-07-17 Thread Simon Kitching
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) {