mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-05 20:48:22 +00:00
* changed instanceof to be consistent with other type checks
This commit is contained in:
parent
cae66fb636
commit
ed2b009f07
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user