forked from I2P_Developers/i2p.i2p
replace call to Arrays.copyOf(), not in Java 5
This commit is contained in:
@@ -27,7 +27,8 @@ public class RateStat {
|
||||
if (periods.length == 0)
|
||||
throw new IllegalArgumentException();
|
||||
|
||||
long [] periodsCopy = copyOf(periods, periods.length);
|
||||
long [] periodsCopy = new long[periods.length];
|
||||
System.arraycopy(periods, 0, periodsCopy, 0, periods.length);
|
||||
sort(periodsCopy);
|
||||
|
||||
_rates = new Rate[periodsCopy.length];
|
||||
|
Reference in New Issue
Block a user