@@ -130,10 +130,10 @@ public Sequence eval(Sequence contextSequence, Item contextItem) throws XPathExc
130
130
131
131
//start a transaction
132
132
try (final Txn transaction = getTransaction ()) {
133
- final StoredNode [] ql = selectAndLock (transaction , inSeq );
133
+ final StoredNode <?> [] ql = selectAndLock (transaction , inSeq );
134
134
final NotificationService notifier = context .getBroker ().getBrokerPool ().getNotificationService ();
135
135
final NodeList contentList = seq2nodeList (contentSeq );
136
- for (final StoredNode node : ql ) {
136
+ for (final StoredNode <?> node : ql ) {
137
137
final DocumentImpl doc = node .getOwnerDocument ();
138
138
if (!doc .getPermissions ().validate (context .getSubject (), Permission .WRITE )) {
139
139
throw new PermissionDeniedException ("User '" + context .getSubject ().getName () + "' does not have permission to write to the document '" + doc .getDocumentURI () + "'!" );
@@ -144,7 +144,7 @@ public Sequence eval(Sequence contextSequence, Item contextItem) throws XPathExc
144
144
validateNonDefaultNamespaces (contentList , node );
145
145
node .appendChildren (transaction , contentList , -1 );
146
146
} else {
147
- final NodeImpl parent = (NodeImpl ) getParent (node );
147
+ final NodeImpl <?> parent = (NodeImpl <?> ) getParent (node );
148
148
validateNonDefaultNamespaces (contentList , parent );
149
149
switch (mode ) {
150
150
case INSERT_BEFORE :
@@ -225,7 +225,7 @@ private void validateNonDefaultNamespaceNode(final ElementImpl parentElement, fi
225
225
* @param parent the position into which the nodes are being inserted
226
226
* @throws XPathException if a node has a namespace conflict
227
227
*/
228
- private void validateNonDefaultNamespaces (final NodeList nodeList , final NodeImpl parent ) throws XPathException {
228
+ private < T extends NodeImpl < T >> void validateNonDefaultNamespaces (final NodeList nodeList , final NodeImpl < T > parent ) throws XPathException {
229
229
if (parent instanceof ElementImpl ) {
230
230
final ElementImpl parentAsElement = (ElementImpl ) parent ;
231
231
for (int i = 0 ; i < nodeList .getLength (); i ++) {
0 commit comments