(Box from)
| 27 | |
| 28 | } |
| 29 | |
| 30 | public Box get(Box from) { |
| 31 | if (ref != null) { |
| 32 | if (ref.disconnected) return ref = null; |
| 33 | return ref; |
| 34 | } |
| 35 | Optional<Box> b = from.breadthFirst(from.both()).filter(x -> Util.safeEq(x.properties.get(IO.id), uuid)).findFirst(); |
| 36 | if (b.isPresent()) ref = b.get(); |
| 37 | return ref; |
| 38 | } |
| 39 | |
| 40 | private void writeObject(ObjectOutputStream out) throws IOException { |
nothing calls this directly
no test coverage detected