Skip to content

Commit a3c0b87

Browse files
committed
update Java version
1 parent 92ba0f6 commit a3c0b87

File tree

2 files changed

+143
-143
lines changed

2 files changed

+143
-143
lines changed

src/main/java/com/upokecenter/cbor/CBORObject.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5201,6 +5201,12 @@ public boolean equals(CBORObject other) {
52015201
(String)otherValue.itemValue,
52025202
(byte[])this.itemValue);
52035203
}
5204+
if ((otherValue.itemtypeValue == CBORObjectTypeTextString &&
5205+
this.itemtypeValue == CBORObjectTypeTextStringAscii) || (this.itemtypeValue
5206+
== CBORObjectTypeTextString && otherValue.itemtypeValue ==
5207+
CBORObjectTypeTextStringAscii)) {
5208+
return ((this.itemValue) == null) ? ((otherValue.itemValue) == null) : (this.itemValue).equals(otherValue.itemValue);
5209+
}
52045210
if (this.itemtypeValue != otherValue.itemtypeValue) {
52055211
return false;
52065212
}

0 commit comments

Comments
 (0)