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

Method main

src/test/resources/dataflow/constprop/inter/Reference.java:2–9  ·  view source on GitHub ↗
(String args[])

Source from the content-addressed store, hash-verified

1public class Reference {
2 public static void main(String args[]) {
3 Point p = new Point();
4 p.x = 2;
5 p.y = 3;
6 int offset = 1;
7 Point p2 = adjustPoint(p, offset);
8 int z = p2.x + p2.y;
9 }
10
11 public static Point adjustPoint(Point p, int offset) {
12 p.x += offset;

Callers

nothing calls this directly

Calls 1

adjustPointMethod · 0.95

Tested by

no test coverage detected