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

Method test

src/test/resources/sideeffect/PolyLoop.java:3–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1public class PolyLoop {
2
3 void test() {
4 Node[] nodes = new Node[2];
5 nodes[0] = new Body();
6 nodes[1] = new Cell();
7 for (Node node : nodes) {
8 Node n = node;
9 if (n instanceof Body) {
10 n = (Body) n;
11 n.foo();
12 }
13 }
14 }
15
16 public static void main(String[] args) {
17 PolyLoop a = new PolyLoop();

Callers 1

mainMethod · 0.95

Calls 1

fooMethod · 0.95

Tested by

no test coverage detected