text: public String toString() {StringBuilder buf = new StringBuilder();buf.append("DiffEntry[");buf.append(changeType);buf.append(" ");switch (changeType) {case ADD:buf.append(newPath);break;case COPY:buf.append(oldPath + "->" + newPath);break;case DELETE:buf.append(oldPath);break;case MODIFY:buf.append(oldPath);break;case RENAME:buf.append(oldPath + "->" + newPath);break;}buf.append("]");return buf.toString();}