File tree Expand file tree Collapse file tree
basex-core/src/main/java/org/basex/query/func/fn Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import org .basex .query .*;
44import org .basex .query .value .*;
55import org .basex .query .value .item .*;
6- import org .basex .query .value .node .*;
76import org .basex .query .value .type .*;
87import org .basex .util .*;
98import org .basex .util .hash .*;
@@ -31,15 +30,11 @@ private String toString(final Value value) {
3130
3231 final TokenSet types = new TokenSet ();
3332 for (final Value item : value ) {
34- String type = null ;
35- if (item instanceof final JNode jnode ) {
36- type = new TokenBuilder ().add (QueryText .JNODE ).add ('(' ).add (toString (jnode .value )).
37- add (')' ).toString ();
38- } else {
39- type = item .type .toString ();
40- if (item .type instanceof FType ) {
41- type = type .replaceAll ("\\ (.*" , "(*)" ).replace ("record" , "map" );
42- }
33+ String type = item .type .toString ();
34+ if (item .type instanceof FType ) {
35+ type = type .replaceAll ("\\ (.*" , "(*)" ).replace ("record" , "map" );
36+ } else if (item .type .instanceOf (NodeType .JNODE )) {
37+ type = type .replaceAll ("\\ (.*" , "()" );
4338 }
4439 types .add (type );
4540 }
You can’t perform that action at this time.
0 commit comments