Throws RuntimeException to indicate failed assertion. The function never returns and its return type is RuntimeException only to be able to write throw Kit.codeBug() if plain Kit.codeBug() triggers unreachable code error.
()
| 349 | * {@code Kit.codeBug()} triggers unreachable code error. |
| 350 | */ |
| 351 | public static RuntimeException codeBug() throws RuntimeException { |
| 352 | RuntimeException ex = new IllegalStateException("FAILED ASSERTION"); |
| 353 | // Print stack trace ASAP |
| 354 | ex.printStackTrace(System.err); |
| 355 | throw ex; |
| 356 | } |
| 357 | |
| 358 | /** |
| 359 | * Throws RuntimeException to indicate failed assertion. The function never returns and its |
no test coverage detected