Ensures the truth of an expression involving the state of the calling instance, but not involving any parameters to the calling method. @param expression a boolean expression @throws IllegalStateException if expression is false
(boolean expression)
| 426 | * @throws IllegalStateException if {@code expression} is false |
| 427 | */ |
| 428 | public static void checkState(boolean expression) { |
| 429 | if (!expression) { |
| 430 | throw new IllegalStateException(); |
| 431 | } |
| 432 | } |
| 433 | |
| 434 | /** |
| 435 | * Ensures the truth of an expression involving the state of the calling instance, but not |
no test coverage detected