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)
| 453 | |
| 454 | |
| 455 | public static void checkState(boolean expression) { |
| 456 | if (!expression) { |
| 457 | throw new IllegalStateException(); |
| 458 | } |
| 459 | } |
| 460 | |
| 461 | /** |
| 462 | * Ensures the truth of an expression involving the state of the calling instance, but not |
no test coverage detected