Skip to content

Commit 1df562c

Browse files
committed
[refactor] Remove unused argument
1 parent f0e9ab3 commit 1df562c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

exist-core/src/main/java/org/exist/xqj/Marshaller.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,26 +196,26 @@ public static void marshallItem(final DBBroker broker, final Item item, final Co
196196
}
197197
}
198198

199-
public static Sequence demarshall(DBBroker broker, Reader reader) throws XMLStreamException, XPathException {
199+
public static Sequence demarshall(final Reader reader) throws XMLStreamException, XPathException {
200200
final XMLInputFactory factory = XMLInputFactory.newInstance();
201201
factory.setProperty(XMLInputFactory.IS_NAMESPACE_AWARE, Boolean.TRUE);
202202
factory.setProperty(XMLInputFactory.IS_VALIDATING, Boolean.FALSE);
203203
final XMLStreamReader parser = factory.createXMLStreamReader(reader);
204-
return demarshall(broker, parser);
204+
return demarshall(parser);
205205
}
206206

207-
public static Sequence demarshall(DBBroker broker,Node n) throws XMLStreamException, XPathException {
207+
public static Sequence demarshall(final Node n) throws XMLStreamException, XPathException {
208208
final DOMSource source = new DOMSource(n, null);
209209
final XMLInputFactory factory = XMLInputFactory.newInstance();
210210
factory.setProperty(XMLInputFactory.IS_NAMESPACE_AWARE, Boolean.TRUE);
211211
factory.setProperty(XMLInputFactory.IS_VALIDATING, Boolean.FALSE);
212212

213213
final XMLStreamReader parser = factory.createXMLStreamReader(source);
214-
return demarshall(broker,parser);
214+
return demarshall(parser);
215215

216216
}
217217

218-
public static Sequence demarshall(DBBroker broker, XMLStreamReader parser) throws XMLStreamException, XPathException {
218+
public static Sequence demarshall(final XMLStreamReader parser) throws XMLStreamException, XPathException {
219219
int event = parser.next();
220220
while (event != XMLStreamConstants.START_ELEMENT) {
221221
event = parser.next();

exist-core/src/test/java/org/exist/xqj/MarshallerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public void atomicValues() throws EXistException, XPathException, SAXException,
126126
Marshaller.marshall(broker, values, serializer);
127127
String serialized = writer.toString();
128128

129-
Sequence seq = Marshaller.demarshall(broker, new StringReader(serialized));
129+
Sequence seq = Marshaller.demarshall(new StringReader(serialized));
130130
assertEquals(seq.itemAt(0).getStringValue(), "foo");
131131
assertEquals(seq.itemAt(1).getStringValue(), "2000");
132132
assertEquals(seq.itemAt(2).getStringValue(), "1000");
@@ -150,7 +150,7 @@ public void nodes() throws EXistException, PermissionDeniedException, SAXExcepti
150150
Marshaller.marshall(broker, p, serializer);
151151
String serialized = writer.toString();
152152

153-
Sequence seq = Marshaller.demarshall(broker, new StringReader(serialized));
153+
Sequence seq = Marshaller.demarshall(new StringReader(serialized));
154154
assertTrue(Type.subTypeOf(seq.getItemType(), Type.NODE));
155155

156156
NodeValue n = (NodeValue) seq.itemAt(0);

0 commit comments

Comments
 (0)