(long val, int bits)
| 43 | } |
| 44 | |
| 45 | private void |
| 46 | check(long val, int bits) { |
| 47 | long max = 1; |
| 48 | max <<= bits; |
| 49 | if (val < 0 || val > max) { |
| 50 | throw new IllegalArgumentException(val + " out of range for " + |
| 51 | bits + " bit value"); |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | private void |
| 56 | need(int n) { |
no outgoing calls
no test coverage detected