For real.
public Request handleRequest ( Request aRequest ) throws InternalError {
// Never called.
if ( 1 == 0 )
throw new InternalError();
return null;
}
Yep.
For real.
public Request handleRequest ( Request aRequest ) throws InternalError {
// Never called.
if ( 1 == 0 )
throw new InternalError();
return null;
}
Yep.
Facebook comments:
Hey, at least it doesn’t say “if ( 1 = 0 )”.
Did you add the “never called” comment? Or was that another stroke of genius from the original developer?
It was another stroke of genius from the original developer
hey James, just curious… in production code or test code?
Michael, I wish I could say that it was found in test code…
of course, I am slowly learning that sometimes people don’t define “test code” as something that you find in UnitTests