Skip to content

Commit d069212

Browse files
ubonesskimchy
authored andcommitted
* fixed the type check for short
1 parent 46223c1 commit d069212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/elasticsearch/common/io/stream/StreamOutput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ public void writeGenericValue(@Nullable Object value) throws IOException {
369369
} else if (value instanceof Text) {
370370
writeByte((byte) 15);
371371
writeText((Text) value);
372-
} else if (value == Short.class) {
372+
} else if (type == Short.class) {
373373
writeByte((byte) 16);
374374
writeShort((Short) value);
375375
} else {

0 commit comments

Comments
 (0)