We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92ba0f6 commit a3c0b87Copy full SHA for a3c0b87
src/main/java/com/upokecenter/cbor/CBORObject.java
@@ -5201,6 +5201,12 @@ public boolean equals(CBORObject other) {
5201
(String)otherValue.itemValue,
5202
(byte[])this.itemValue);
5203
}
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
+ }
5210
if (this.itemtypeValue != otherValue.itemtypeValue) {
5211
return false;
5212
0 commit comments