MCPcopy
hub / github.com/TuiQiao/CBoard / getD

Method getD

src/main/java/org/cboard/cache/CacheObject.java:53–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 }
52
53 public Object getD() {
54 if (d != null) {
55 ByteArrayInputStream is = new ByteArrayInputStream(d);
56 Hessian2Input hi = new Hessian2Input(is);
57 try {
58 hi.startMessage();
59 Object o = hi.readObject();
60 hi.completeMessage();
61 hi.close();
62 return o;
63 } catch (IOException e) {
64 throw new RuntimeException(e);
65 }
66 }
67 return d;
68 }
69
70}

Callers 2

getMethod · 0.95
getMethod · 0.95

Calls 1

closeMethod · 0.80

Tested by

no test coverage detected