Wrong casting of CharSequence to String

This commit is contained in:
Noble Paul 2016-11-18 20:29:09 +05:30
parent 8938c9f3d0
commit 0ec660a113
1 changed files with 1 additions and 1 deletions

View File

@ -886,7 +886,7 @@ public class JavaBinCodec implements PushWriter {
daos.writeByte(NULL); daos.writeByte(NULL);
return true; return true;
} else if (val instanceof CharSequence) { } else if (val instanceof CharSequence) {
writeStr((String) val); writeStr((CharSequence) val);
return true; return true;
} else if (val instanceof Number) { } else if (val instanceof Number) {