Skip to content

Commit ab2169d

Browse files
authored
Merge pull request #3222 from adamretter/hotfix/java-doc
Fix broken javadoc
2 parents 15663d8 + 85198bf commit ab2169d

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

exist-core/src/main/java/org/exist/xmldb/RemoteXMLResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public RemoteXMLResource(final RemoteCollection parent, final XmldbURI docId, fi
135135
*
136136
* @throws XMLDBException if an error occurs during construction
137137
*
138-
* @deprecared Use {@link #RemoteXMLResource(RemoteCollection, int, int, XmldbURI, Optional, Optional)}.
138+
* @deprecated Use {@link #RemoteXMLResource(RemoteCollection, int, int, XmldbURI, Optional, Optional)}.
139139
*/
140140
@Deprecated
141141
public RemoteXMLResource(

exist-core/src/main/java/org/exist/xquery/functions/fn/JSON.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ private Sequence toxml(Sequence json, String handleDuplicates, JsonFactory facto
174174
final MemTreeBuilder builder = context.getDocumentBuilder();
175175
builder.startDocument();
176176
factory.configure(JsonParser.Feature.ALLOW_BACKSLASH_ESCAPING_ANY_CHARACTER, false);
177-
jsonToXml(context, builder, parser, handleDuplicates);
177+
jsonToXml(builder, parser);
178178
return builder.getDocument() == null ? Sequence.EMPTY_SEQUENCE : builder.getDocument();
179179
} catch (IOException e) {
180180
throw new XPathException(this, ErrorCodes.FOJS0001, e.getMessage());
@@ -292,14 +292,12 @@ private static Item readValue(XQueryContext context, JsonParser parser, Item par
292292
/**
293293
* Generate an XML from the tokens delivered by the JSON parser.
294294
*
295-
* @param context the XQueryContext
295+
* @param builder the memtree builder
296296
* @param parser parser to use
297-
* @param handleDuplicates string indicating how to handle duplicate property names
298-
* @return the top item read
299-
* @throws IOException
300-
* @throws XPathException
297+
*
298+
* @throws IOException if an I/O error occurs
301299
*/
302-
public static void jsonToXml(XQueryContext context, MemTreeBuilder builder, JsonParser parser, String handleDuplicates) throws IOException, XPathException {
300+
public static void jsonToXml(MemTreeBuilder builder, JsonParser parser) throws IOException {
303301
JsonToken token;
304302

305303
while ((token = parser.nextValue()) != null) {

0 commit comments

Comments
 (0)