I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 8edbfc51 authored by zzz's avatar zzz
Browse files

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

parent 8513d1f2
No related branches found
No related tags found
No related merge requests found
......@@ -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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment