private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
  in.defaultReadObject();
  if (userData != null) {
    userData=new WeakHashMap(userData);
  }
  if (nodeTable != null) {
    nodeTable=new WeakHashMap(nodeTable);
  }
}

private void readObject ( ObjectInputStream in ) throws IOException , ClassNotFoundException { in . defaultReadObject ( ) ; if ( userData != null ) { userData = new WeakHashMap ( userData ) ; } if ( nodeTable != null ) { nodeTable = new WeakHashMap ( nodeTable ) ; } }
the serialized forms of the user data and node table maps are hashtables . convert them into weakhashmaps on load .
