Ensures the truth of an expression involving one or more parameters to the calling method. @param expression a boolean expression @throws IllegalArgumentException if expression is false
(boolean expression)
| 108 | |
| 109 | |
| 110 | public static void checkArgument(boolean expression) { |
| 111 | if (!expression) { |
| 112 | throw new IllegalArgumentException(); |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | /** |
| 117 | * Ensures the truth of an expression involving one or more parameters to the calling method. |
no test coverage detected