There was an error while loading. Please reload this page.
1 parent 46223c1 commit d069212Copy full SHA for d069212
src/main/java/org/elasticsearch/common/io/stream/StreamOutput.java
@@ -369,7 +369,7 @@ public void writeGenericValue(@Nullable Object value) throws IOException {
369
} else if (value instanceof Text) {
370
writeByte((byte) 15);
371
writeText((Text) value);
372
- } else if (value == Short.class) {
+ } else if (type == Short.class) {
373
writeByte((byte) 16);
374
writeShort((Short) value);
375
} else {
0 commit comments