Style-nit:  Our toString style looks more like

  DiffEntry[ADD newName]
  DiffEntry[COPY oldName -> newName score]
  DiffEntry[DELETE oldName]

etc...  Please match it here.  Of course this is a bit easier, you can do buf.append(type) to get the type part and not have to duplicate the name in both the case label and the string text.