(Fields row, Field<?> field)
| 2343 | } |
| 2344 | |
| 2345 | static final int indexOrFail(Fields row, Field<?> field) { |
| 2346 | int result = row.indexOf(field); |
| 2347 | |
| 2348 | if (result < 0) |
| 2349 | throw indexFail(row, field); |
| 2350 | |
| 2351 | return result; |
| 2352 | } |
| 2353 | |
| 2354 | static final IllegalArgumentException indexFail(Fields row, String fieldName) { |
| 2355 | return indexFail(row, DSL.name(fieldName)); |
no test coverage detected