Skip to content

Commit

Permalink
Merge pull request voldemort#109 from brentdmiller/master
Browse files Browse the repository at this point in the history
allow voldemort-shell.sh to dump byte & object arrays
  • Loading branch information
Zhongjie Wu committed Oct 2, 2012
2 parents 5b70b50 + 87914fe commit c2ee344
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/java/voldemort/VoldemortClientShell.java
Expand Up @@ -381,6 +381,12 @@ private static void printObject(Object o) {
System.out.print(", ");
}
System.out.print('}');
} else if(o instanceof Object[]) {
Object[] a = (Object[]) o;
System.out.print( Arrays.deepToString(a) );
} else if(o instanceof byte[]) {
byte[] a = (byte[]) o;
System.out.print( Arrays.toString(a) );
} else {
System.out.print(o);
}
Expand Down

0 comments on commit c2ee344

Please sign in to comment.