Skip to content

Commit abf0f58

Browse files
committed
[ignore] Cleanup code warnings
1 parent fd3b651 commit abf0f58

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed

exist-core/src/test/java/org/exist/http/RESTExternalVariableTest.java

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public class RESTExternalVariableTest {
100100

101101
@Test
102102
public void queryPostWithExternalVariableUntypedNotSupplied() throws IOException {
103-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, null, null);
103+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, null, (ExternalVariableValueRep[]) null);
104104
}
105105

106106
@Test
@@ -118,7 +118,7 @@ public void queryPostWithExternalVariableUntypedSuppliedString() throws IOExcept
118118

119119
@Test
120120
public void queryPostWithExternalVariableStringNotSupplied() throws IOException {
121-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "xs:string", null);
121+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "xs:string", (ExternalVariableValueRep[]) null);
122122
}
123123

124124
@Test
@@ -161,7 +161,7 @@ public void queryPostWithExternalVariableUntypedSuppliedStrings() throws IOExcep
161161

162162
@Test
163163
public void queryPostWithExternalVariableOptStringNotSupplied() throws IOException {
164-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "xs:string?", null);
164+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "xs:string?", (ExternalVariableValueRep[]) null);
165165
}
166166

167167
@Test
@@ -191,7 +191,7 @@ public void queryPostWithExternalVariableOptStringSuppliedUntyped() throws IOExc
191191

192192
@Test
193193
public void queryPostWithExternalVariableStringsNotSupplied() throws IOException {
194-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "xs:string+", null);
194+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "xs:string+", (ExternalVariableValueRep[]) null);
195195
}
196196

197197
@Test
@@ -228,7 +228,7 @@ public void queryPostWithExternalVariableStringsSuppliedUntypeds() throws IOExce
228228

229229
@Test
230230
public void queryPostWithExternalVariableStringzNotSupplied() throws IOException {
231-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "xs:string*", null);
231+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "xs:string*", (ExternalVariableValueRep[]) null);
232232
}
233233

234234
@Test
@@ -277,7 +277,7 @@ public void queryPostWithExternalVariableUntypedSuppliedElement() throws IOExcep
277277

278278
@Test
279279
public void queryPostWithExternalVariableElementNotSupplied() throws IOException {
280-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "element()", null);
280+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "element()", (ExternalVariableValueRep[]) null);
281281
}
282282

283283
@Test
@@ -318,7 +318,7 @@ public void queryPostWithExternalVariableUntypedSuppliedElements() throws IOExce
318318

319319
@Test
320320
public void queryPostWithExternalVariableOptElementNotSupplied() throws IOException {
321-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "element()?", null);
321+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "element()?", (ExternalVariableValueRep[]) null);
322322
}
323323

324324
@Test
@@ -347,7 +347,7 @@ public void queryPostWithExternalVariableOptElementSuppliedUntyped() throws IOEx
347347

348348
@Test
349349
public void queryPostWithExternalVariableElementsNotSupplied() throws IOException {
350-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "element()+", null);
350+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "element()+", (ExternalVariableValueRep[]) null);
351351
}
352352

353353
@Test
@@ -382,7 +382,7 @@ public void queryPostWithExternalVariableElementsSuppliedUntypeds() throws IOExc
382382

383383
@Test
384384
public void queryPostWithExternalVariableElementzNotSupplied() throws IOException {
385-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "element()*", null);
385+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "element()*", (ExternalVariableValueRep[]) null);
386386
}
387387

388388
@Test
@@ -429,7 +429,7 @@ public void queryPostWithExternalVariableUntypedSuppliedDocument() throws IOExce
429429

430430
@Test
431431
public void queryPostWithExternalVariableDocumentNotSupplied() throws IOException {
432-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "document-node()", null);
432+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "document-node()", (ExternalVariableValueRep[]) null);
433433
}
434434

435435
@Test
@@ -471,7 +471,7 @@ public void queryPostWithExternalVariableUntypedSuppliedDocuments() throws IOExc
471471

472472
@Test
473473
public void queryPostWithExternalVariableOptDocumentNotSupplied() throws IOException {
474-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "document-node()?", null);
474+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "document-node()?", (ExternalVariableValueRep[]) null);
475475
}
476476

477477
@Test
@@ -501,7 +501,7 @@ public void queryPostWithExternalVariableOptDocumentSuppliedUntyped() throws IOE
501501

502502
@Test
503503
public void queryPostWithExternalVariableDocumentsNotSupplied() throws IOException {
504-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "document-node()+", null);
504+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "document-node()+", (ExternalVariableValueRep[]) null);
505505
}
506506

507507
@Test
@@ -538,7 +538,7 @@ public void queryPostWithExternalVariableDocumentsSuppliedUntypeds() throws IOEx
538538

539539
@Test
540540
public void queryPostWithExternalVariableDocumentzNotSupplied() throws IOException {
541-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "document-node()*", null);
541+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "document-node()*", (ExternalVariableValueRep[]) null);
542542
}
543543

544544
@Test
@@ -587,7 +587,7 @@ public void queryPostWithExternalVariableUntypedSuppliedComment() throws IOExcep
587587

588588
@Test
589589
public void queryPostWithExternalVariableCommentNotSupplied() throws IOException {
590-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "comment()", null);
590+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "comment()", (ExternalVariableValueRep[]) null);
591591
}
592592

593593
@Test
@@ -628,7 +628,7 @@ public void queryPostWithExternalVariableUntypedSuppliedComments() throws IOExce
628628

629629
@Test
630630
public void queryPostWithExternalVariableOptCommentNotSupplied() throws IOException {
631-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "comment()?", null);
631+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "comment()?", (ExternalVariableValueRep[]) null);
632632
}
633633

634634
@Test
@@ -657,7 +657,7 @@ public void queryPostWithExternalVariableOptCommentSuppliedUntyped() throws IOEx
657657

658658
@Test
659659
public void queryPostWithExternalVariableCommentsNotSupplied() throws IOException {
660-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "comment()+", null);
660+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "comment()+", (ExternalVariableValueRep[]) null);
661661
}
662662

663663
@Test
@@ -692,7 +692,7 @@ public void queryPostWithExternalVariableCommentsSuppliedUntypeds() throws IOExc
692692

693693
@Test
694694
public void queryPostWithExternalVariableCommentzNotSupplied() throws IOException {
695-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "comment()*", null);
695+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "comment()*", (ExternalVariableValueRep[]) null);
696696
}
697697

698698
@Test
@@ -739,7 +739,7 @@ public void queryPostWithExternalVariableUntypedSuppliedProcessingInstruction()
739739

740740
@Test
741741
public void queryPostWithExternalVariableProcessingInstructionNotSupplied() throws IOException {
742-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "processing-instruction()", null);
742+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "processing-instruction()", (ExternalVariableValueRep[]) null);
743743
}
744744

745745
@Test
@@ -780,7 +780,7 @@ public void queryPostWithExternalVariableUntypedSuppliedProcessingInstructions()
780780

781781
@Test
782782
public void queryPostWithExternalVariableOptProcessingInstructionNotSupplied() throws IOException {
783-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "processing-instruction()?", null);
783+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "processing-instruction()?", (ExternalVariableValueRep[]) null);
784784
}
785785

786786
@Test
@@ -809,7 +809,7 @@ public void queryPostWithExternalVariableOptProcessingInstructionSuppliedUntyped
809809

810810
@Test
811811
public void queryPostWithExternalVariableProcessingInstructionsNotSupplied() throws IOException {
812-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "processing-instruction()+", null);
812+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "processing-instruction()+", (ExternalVariableValueRep[]) null);
813813
}
814814

815815
@Test
@@ -844,7 +844,7 @@ public void queryPostWithExternalVariableProcessingInstructionsSuppliedUntypeds(
844844

845845
@Test
846846
public void queryPostWithExternalVariableProcessingInstructionzNotSupplied() throws IOException {
847-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "processing-instruction()*", null);
847+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "processing-instruction()*", (ExternalVariableValueRep[]) null);
848848
}
849849

850850
@Test
@@ -893,7 +893,7 @@ public void queryPostWithExternalVariableUntypedSuppliedText() throws IOExceptio
893893

894894
@Test
895895
public void queryPostWithExternalVariableTextNotSupplied() throws IOException {
896-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "text()", null);
896+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "text()", (ExternalVariableValueRep[]) null);
897897
}
898898

899899
@Test
@@ -937,7 +937,7 @@ public void queryPostWithExternalVariableUntypedSuppliedTexts() throws IOExcepti
937937

938938
@Test
939939
public void queryPostWithExternalVariableOptTextNotSupplied() throws IOException {
940-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "text()?", null);
940+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "text()?", (ExternalVariableValueRep[]) null);
941941
}
942942

943943
@Test
@@ -967,7 +967,7 @@ public void queryPostWithExternalVariableOptTextSuppliedUntyped() throws IOExcep
967967

968968
@Test
969969
public void queryPostWithExternalVariableTextsNotSupplied() throws IOException {
970-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "text()+", null);
970+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "text()+", (ExternalVariableValueRep[]) null);
971971
}
972972

973973
@Test
@@ -1004,7 +1004,7 @@ public void queryPostWithExternalVariableTextsSuppliedUntypeds() throws IOExcept
10041004

10051005
@Test
10061006
public void queryPostWithExternalVariableTextzNotSupplied() throws IOException {
1007-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "text()*", null);
1007+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "text()*", (ExternalVariableValueRep[]) null);
10081008
}
10091009

10101010
@Test
@@ -1055,7 +1055,7 @@ public void queryPostWithExternalVariableUntypedSuppliedAttribute() throws IOExc
10551055

10561056
@Test
10571057
public void queryPostWithExternalVariableAttributeNotSupplied() throws IOException {
1058-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "attribute()", null);
1058+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "attribute()", (ExternalVariableValueRep[]) null);
10591059
}
10601060

10611061
@Test
@@ -1100,7 +1100,7 @@ public void queryPostWithExternalVariableUntypedSuppliedAttributes() throws IOEx
11001100

11011101
@Test
11021102
public void queryPostWithExternalVariableOptAttributeNotSupplied() throws IOException {
1103-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "attribute()?", null);
1103+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "attribute()?", (ExternalVariableValueRep[]) null);
11041104
}
11051105

11061106
@Test
@@ -1130,7 +1130,7 @@ public void queryPostWithExternalVariableOptAttributeSuppliedUntyped() throws IO
11301130

11311131
@Test
11321132
public void queryPostWithExternalVariableAttributesNotSupplied() throws IOException {
1133-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "attribute()+", null);
1133+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "attribute()+", (ExternalVariableValueRep[]) null);
11341134
}
11351135

11361136
@Test
@@ -1167,7 +1167,7 @@ public void queryPostWithExternalVariableAttributesSuppliedUntypeds() throws IOE
11671167

11681168
@Test
11691169
public void queryPostWithExternalVariableAttributezNotSupplied() throws IOException {
1170-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "attribute()*", null);
1170+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "attribute()*", (ExternalVariableValueRep[]) null);
11711171
}
11721172

11731173
@Test
@@ -1216,7 +1216,7 @@ public void queryPostWithExternalVariableUntypedSuppliedArray() throws IOExcepti
12161216

12171217
@Test
12181218
public void queryPostWithExternalVariableArrayNotSupplied() throws IOException {
1219-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "array(*)", null);
1219+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "array(*)", (ExternalVariableValueRep[]) null);
12201220
}
12211221

12221222
@Test
@@ -1257,7 +1257,7 @@ public void queryPostWithExternalVariableUntypedSuppliedArrays() throws IOExcept
12571257

12581258
@Test
12591259
public void queryPostWithExternalVariableOptArrayNotSupplied() throws IOException {
1260-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "array(*)?", null);
1260+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "array(*)?", (ExternalVariableValueRep[]) null);
12611261
}
12621262

12631263
@Test
@@ -1286,7 +1286,7 @@ public void queryPostWithExternalVariableOptArraySuppliedUntyped() throws IOExce
12861286

12871287
@Test
12881288
public void queryPostWithExternalVariableArraysNotSupplied() throws IOException {
1289-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "array(*)+", null);
1289+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "array(*)+", (ExternalVariableValueRep[]) null);
12901290
}
12911291

12921292
@Test
@@ -1321,7 +1321,7 @@ public void queryPostWithExternalVariableArraysSuppliedUntypeds() throws IOExcep
13211321

13221322
@Test
13231323
public void queryPostWithExternalVariableArrayzNotSupplied() throws IOException {
1324-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "array(*)*", null);
1324+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "array(*)*", (ExternalVariableValueRep[]) null);
13251325
}
13261326

13271327
@Test
@@ -1368,7 +1368,7 @@ public void queryPostWithExternalVariableUntypedSuppliedMap() throws IOException
13681368

13691369
@Test
13701370
public void queryPostWithExternalVariableMapNotSupplied() throws IOException {
1371-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "map(*)", null);
1371+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "map(*)", (ExternalVariableValueRep[]) null);
13721372
}
13731373

13741374
@Test
@@ -1433,7 +1433,7 @@ public void queryPostWithExternalVariableUntypedSuppliedMaps() throws IOExceptio
14331433

14341434
@Test
14351435
public void queryPostWithExternalVariableOptMapNotSupplied() throws IOException {
1436-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "map(*)?", null);
1436+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "map(*)?", (ExternalVariableValueRep[]) null);
14371437
}
14381438

14391439
@Test
@@ -1470,7 +1470,7 @@ public void queryPostWithExternalVariableOptMapSuppliedUntyped() throws IOExcept
14701470

14711471
@Test
14721472
public void queryPostWithExternalVariableMapsNotSupplied() throws IOException {
1473-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "map(*)+", null);
1473+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "map(*)+", (ExternalVariableValueRep[]) null);
14741474
}
14751475

14761476
@Test
@@ -1522,7 +1522,7 @@ public void queryPostWithExternalVariableMapsSuppliedUntypeds() throws IOExcepti
15221522

15231523
@Test
15241524
public void queryPostWithExternalVariableMapzNotSupplied() throws IOException {
1525-
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "map(*)*", null);
1525+
queryPostWithExternalVariable(HttpStatus.BAD_REQUEST_400, "map(*)*", (ExternalVariableValueRep[]) null);
15261526
}
15271527

15281528
@Test

0 commit comments

Comments
 (0)