Merge pull request #13 from eirv/patch-1

fix: attribute type inconsistent bug #12
master
Wind 2023-07-25 10:54:31 +08:00 committed by GitHub
commit 34387a78a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -50,6 +50,9 @@ public class ModifyAttributeVisitor extends NodeVisitor {
|| (resourceId >= 0 && resourceId == attributeItem.getResourceId())) { || (resourceId >= 0 && resourceId == attributeItem.getResourceId())) {
hasBeenAddedAttributeList.add(attributeItem); hasBeenAddedAttributeList.add(attributeItem);
newObj = attributeItem.getValue(); newObj = attributeItem.getValue();
if (obj != null && newObj != null && obj.getClass() != newObj.getClass()) {
type = attributeItem.getType();
}
break; break;
} }
} }