mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-22 13:12:15 +00:00
replace call to Arrays.copyOf(), not in Java 5
This commit is contained in:
1 parent
8513d1f22b
commit
8edbfc5198
1 file changed
+2
-1
@@ -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