add toString to CompressedString to show when logging it
This commit is contained in:
parent
3b30930460
commit
800b7f39bd
|
@ -87,4 +87,12 @@ public class CompressedString implements Streamable {
|
|||
@Override public int hashCode() {
|
||||
return bytes != null ? Arrays.hashCode(bytes) : 0;
|
||||
}
|
||||
|
||||
@Override public String toString() {
|
||||
try {
|
||||
return string();
|
||||
} catch (IOException e) {
|
||||
return "_na_";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue