fixed one mistake.
This commit is contained in:
parent
c032d18ca0
commit
6e00cbc9af
@ -46,7 +46,7 @@ public class BufferObject extends NativeObject {
|
|||||||
|
|
||||||
protected static VarType getVarTypeByValue(final Object value) {
|
protected static VarType getVarTypeByValue(final Object value) {
|
||||||
|
|
||||||
final VarType varType = CLASS_TO_VAR_TYPE.get(value);
|
final VarType varType = CLASS_TO_VAR_TYPE.get(value.getClass());
|
||||||
if (varType != null) {
|
if (varType != null) {
|
||||||
return varType;
|
return varType;
|
||||||
} else if (value instanceof Collection<?> && ((Collection) value).isEmpty()) {
|
} else if (value instanceof Collection<?> && ((Collection) value).isEmpty()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user