Skip to content
Commit 28dfd90d authored by Jesse Glick's avatar Jesse Glick
Browse files

Better to use an IllegalStateException rather than assertion in setResult.

Assertions are only for cases where you believe the failure of the condition is impossible.
For cases where external code might mistakenly make an incorrect call, throw an exception.
parent 7e09c4f8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment