File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
exist-core/src/main/java/org/exist/xquery/functions/map Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ public boolean contains(AtomicValue key) {
283
283
public boolean containsReference (final Item item ) {
284
284
for (final Iterator <Sequence > it = map .values ().iterator (); it .hasNext ();) {
285
285
final Sequence value = it .next ();
286
- if (value == item ) {
286
+ if (value == item || value . containsReference ( item ) ) {
287
287
return true ;
288
288
}
289
289
}
@@ -294,7 +294,7 @@ public boolean containsReference(final Item item) {
294
294
public boolean contains (final Item item ) {
295
295
for (final Iterator <Sequence > it = map .values ().iterator (); it .hasNext ();) {
296
296
final Sequence value = it .next ();
297
- if (value .equals (item )) {
297
+ if (value .equals (item ) || value . contains ( item ) ) {
298
298
return true ;
299
299
}
300
300
}
You can’t perform that action at this time.
0 commit comments