| 10 | } |
| 11 | |
| 12 | public class PassObject { |
| 13 | static void f(Letter y) { |
| 14 | y.c = 'z'; |
| 15 | } |
| 16 | public static void main(String[] args) { |
| 17 | Letter x = new Letter(); |
| 18 | x.c = 'a'; |
| 19 | System.out.println("1: x.c: " + x.c); |
| 20 | f(x); |
| 21 | System.out.println("2: x.c: " + x.c); |
| 22 | } |
| 23 | } |
| 24 | /* Output: |
| 25 | 1: x.c: a |
| 26 | 2: x.c: z |
nothing calls this directly
no outgoing calls
no test coverage detected