(String args[])
| 1 | public 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; |
nothing calls this directly
no test coverage detected