Apache Commons logo Apache Commons JEXL

CPD Results

The following document contains the results of PMD's CPD 7.1.0.

Duplications

File Line
org/apache/commons/jexl3/internal/IntegerRange.java 267
org/apache/commons/jexl3/internal/LongRange.java 272
}

    @Override
    public Object[] toArray() {
        final int size = size();
        final Object[] array = new Object[size];
        for(int a = 0; a < size; ++a) {
            array[a] = min + a;
        }
        return array;
    }

    @Override
    @SuppressWarnings("unchecked")
    public <T> T[] toArray(final T[] array) {
        final Class<?> ct = array.getClass().getComponentType();
        final int length = size();
        T[] copy = array;
        if (ct.isAssignableFrom(Integer.class)) {