private synchronized void doDetach() { Annotatable ann = getAttachedAnnotatable(); if (ann != null) { ann.removePropertyChangeListener(this); detach(); } synchronized (hyperlinks) { hyperlinks.remove(this); } }
private synchronized void doDetach() { Annotatable ann = getAttachedAnnotatable(); if (ann != null) { ann.removePropertyChangeListener(this); detach(); } synchronized (hyperlinks) { hyperlinks.remove(this); } }