Skip to content

Commit

Permalink
CAMEL-20713: Added type check into equals() (#13902)
Browse files Browse the repository at this point in the history
  • Loading branch information
dk2k authored Apr 24, 2024
1 parent 0fa894b commit 5438fea
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ public String toString() {

@Override
public boolean equals(Object tag) {
if (!(tag instanceof TagData)) {
return false;
}
return value != null
? ((TagData) tag).getValue().equals(value)
&& ((TagData) tag).getTagName().equals(tagName)
Expand Down

0 comments on commit 5438fea

Please sign in to comment.