| 7 | } |
| 8 | |
| 9 | class A { |
| 10 | |
| 11 | private void interesting() { |
| 12 | System.out.println("A.interesting()"); |
| 13 | } |
| 14 | |
| 15 | void callInteresting() { |
| 16 | System.out.println(this); |
| 17 | interesting(); // Since Java 11, invokevirtual/invokeinterface |
| 18 | // may be used to call private methods |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | class B extends A { |
| 23 | void interesting() { |
nothing calls this directly
no outgoing calls
no test coverage detected