MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / f

Method f

generics/NeedCasting.java:9–14  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

7
8public class NeedCasting {
9 @SuppressWarnings("unchecked")
10 public void f(String[] args) throws Exception {
11 ObjectInputStream in = new ObjectInputStream(
12 new FileInputStream(args[0]));
13 List<Widget> shapes = (List<Widget>)in.readObject();
14 }
15}

Callers

nothing calls this directly

Calls 1

readObjectMethod · 0.80

Tested by

no test coverage detected