| 4 | // Visit http://OnJava8.com for more book information. |
| 5 | |
| 6 | public class SimpleHolder { |
| 7 | private Object obj; |
| 8 | public void set(Object obj) { this.obj = obj; } |
| 9 | public Object get() { return obj; } |
| 10 | public static void main(String[] args) { |
| 11 | SimpleHolder holder = new SimpleHolder(); |
| 12 | holder.set("Item"); |
| 13 | String s = (String)holder.get(); |
| 14 | } |
| 15 | } |
nothing calls this directly
no outgoing calls
no test coverage detected