(Comparable from, Comparable to)
| 197 | } |
| 198 | |
| 199 | private static boolean areReversed(Comparable from, Comparable to) { |
| 200 | try { |
| 201 | return ScriptBytecodeAdapter.compareGreaterThan(from, to); |
| 202 | } catch (IllegalArgumentException iae) { |
| 203 | throw new IllegalArgumentException("Unable to create range due to incompatible types: " + from.getClass().getSimpleName() + ".." + to.getClass().getSimpleName() + " (possible missing brackets around range?)", iae); |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | /** |
| 208 | * {@inheritDoc} |
no test coverage detected