AbstractTreeIterator: Add toString with entry path

Helps when debugging tree walking code.

Change-Id: I7ba3846a028a1538787a7d4fbf50f7c487cae6c7
This commit is contained in:
Robin Stocker 2012-10-20 20:11:34 +02:00
parent 1ff82ca6d0
commit f54b74225c
1 changed files with 5 additions and 0 deletions

View File

@ -671,4 +671,9 @@ public int getNameOffset() {
public void getName(byte[] buffer, int offset) {
System.arraycopy(path, pathOffset, buffer, offset, pathLen - pathOffset);
}
@Override
public String toString() {
return getClass().getSimpleName() + "[" + getEntryPathString() + "]";
}
}