Skip to content

Commit b0c15e7

Browse files
author
chengyitian
committed
AJ-720: optimize logic;
1 parent 6aba269 commit b0c15e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/xxdb/data/BasicDictionary.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public Entity get(Scalar key) {
115115

116116
@Override
117117
public boolean put(Scalar key, Entity value) {
118-
if(key.getDataType() != getKeyDataType() || ((value.getDataType() == DATA_TYPE.DT_ANY) && (value.getDataType() != getDataType())))
118+
if(key.getDataType() != getKeyDataType() || ((getDataType() != DATA_TYPE.DT_ANY) && (value.getDataType() != getDataType())))
119119
return false;
120120
else{
121121
dict.put(key, value);

0 commit comments

Comments
 (0)