(Object myObject)
| 14 | public class ObjectLogic { |
| 15 | |
| 16 | public static boolean isGadgetChain(Object myObject) throws Exception { |
| 17 | ByteArrayOutputStream barr = new ByteArrayOutputStream(); |
| 18 | ObjectOutputStream oos = new ObjectOutputStream(barr); |
| 19 | oos.writeObject(myObject); |
| 20 | oos.close(); |
| 21 | ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(barr.toByteArray())); |
| 22 | ois.readObject(); |
| 23 | return true; |
| 24 | } |
| 25 | } |
no outgoing calls