Changeset 8edbfc5


Ignore:
Timestamp:
Dec 15, 2012 2:41:42 PM (8 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
74f6abc
Parents:
8513d1f
Message:

replace call to Arrays.copyOf(), not in Java 5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/stat/RateStat.java

    r8513d1f r8edbfc5  
    2828            throw new IllegalArgumentException();
    2929       
    30         long [] periodsCopy = copyOf(periods, periods.length);
     30        long [] periodsCopy = new long[periods.length];
     31        System.arraycopy(periods, 0, periodsCopy, 0, periods.length);
    3132        sort(periodsCopy);
    3233       
Note: See TracChangeset for help on using the changeset viewer.