(Object o)
| 702 | } |
| 703 | |
| 704 | public int indexOf(Object o) { |
| 705 | if (o instanceof Short) { |
| 706 | short s = ((Short) o).shortValue(); |
| 707 | for (int j = i; j < array.length; j++) |
| 708 | if (s == array[j]) return j - i; |
| 709 | } |
| 710 | if (o == null) { |
| 711 | return -1; |
| 712 | } |
| 713 | for (int j = i; j < array.length; j++) |
| 714 | if (o.equals(array[j])) return j - i; |
| 715 | return -1; |
| 716 | } |
| 717 | |
| 718 | public int lastIndexOf(Object o) { |
| 719 | if (o instanceof Short) { |
nothing calls this directly
no test coverage detected