aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/bytecode/stackmap/MapMaker.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/bytecode/stackmap/MapMaker.java')
-rw-r--r--src/main/javassist/bytecode/stackmap/MapMaker.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/javassist/bytecode/stackmap/MapMaker.java b/src/main/javassist/bytecode/stackmap/MapMaker.java
index bd79377f..d016a3be 100644
--- a/src/main/javassist/bytecode/stackmap/MapMaker.java
+++ b/src/main/javassist/bytecode/stackmap/MapMaker.java
@@ -309,8 +309,7 @@ public class MapMaker extends Tracer {
}
protected static void copyTypeData(int n, TypeData[] srcTypes, TypeData[] destTypes) {
- for (int i = 0; i < n; i++)
- destTypes[i] = srcTypes[i];
+ System.arraycopy(srcTypes, 0, destTypes, 0, n);
}
private static TypeData validateTypeData(TypeData[] data, int length, int index) {