* changed instanceof to be consistent with other type checks

This commit is contained in:
uboness 2012-11-06 11:14:40 +01:00 committed by Shay Banon
parent cae66fb636
commit ed2b009f07
1 changed files with 1 additions and 1 deletions

View File

@ -369,7 +369,7 @@ public abstract class StreamOutput extends OutputStream {
} else if (value instanceof Text) {
writeByte((byte) 15);
writeText((Text) value);
} else if (value instanceof Short) {
} else if (value == Short.class) {
writeByte((byte) 16);
writeShort((Short) value);
} else {