* fixed the type check for short

This commit is contained in:
uboness 2012-11-06 11:25:22 +01:00 committed by Shay Banon
parent 46223c117a
commit d069212ce4
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 == Short.class) {
} else if (type == Short.class) {
writeByte((byte) 16);
writeShort((Short) value);
} else {