MCPcopy Create free account
hub / github.com/GCMiner/GCMiner / isGadgetChain

Method isGadgetChain

src/main/java/com/ObjectLogic.java:16–24  ·  view source on GitHub ↗
(Object myObject)

Source from the content-addressed store, hash-verified

14public 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}

Callers 1

testGadgetChainMethod · 0.95

Calls

no outgoing calls

Tested by 1

testGadgetChainMethod · 0.76