Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[voldemort#108] allow getting byte and object arrays using voldemort-…
…shell.sh
  • Loading branch information
brentdmiller committed Sep 20, 2012
1 parent c26373f commit 87914fe
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 87914fe

Please sign in to comment.