MCPcopy Create free account
hub / github.com/LFYSec/MScan / arraycopy

Method arraycopy

src/test/resources/pta/basic/NativeModel.java:13–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 }
12
13 static void arraycopy() {
14 Object[] src1 = new Object[5];
15 src1[0] = new Object();
16 Object[] dest1 = new Object[5];
17 System.arraycopy(src1, 0, dest1, 0, 5);
18 Object o = dest1[0];
19
20 Object[] src2 = new Object[5];
21 src2[0] = new String();
22 String[] dest2 = new String[5];
23 System.arraycopy(src2, 0, dest2, 0, 5);
24 String s = (String) dest2[0];
25 }
26
27 static void doPrivileged() {
28 A a = AccessController.doPrivileged(new PrivilegedAction<A>() {

Callers 6

mainMethod · 0.95
expandMethod · 0.80
orMethod · 0.80
xorMethod · 0.80
setToMethod · 0.80
resizeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected