File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
vertx-web/src/test/java/io/vertx/ext/web/handler Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 3939import java .util .concurrent .atomic .AtomicBoolean ;
4040import java .util .concurrent .atomic .AtomicReference ;
4141import java .util .function .BiConsumer ;
42+ import java .util .stream .Stream ;
4243
4344import static io .vertx .core .http .HttpHeaders .ACCEPT_ENCODING ;
4445import static java .util .Comparator .reverseOrder ;
@@ -684,7 +685,7 @@ public void testCustomDirectoryListingHtmlEscaping() throws Exception {
684685 "<a href=\" /\" >..</a>" ,
685686 "<ul id=\" files\" ><li><a href=\" /dirxss/%3Cimg%20src=x%20onerror=alert('XSS-FILE')%3E.txt\" title=\" <img src=x onerror=alert('XSS-FILE')>.txt\" ><img src=x onerror=alert('XSS-FILE')>.txt</a></li></ul>" );
686687 } finally {
687- try (var pathStream = Files .walk (testDir .toPath ())) {
688+ try (Stream < Path > pathStream = Files .walk (testDir .toPath ())) {
688689 pathStream .sorted (reverseOrder ()).map (Path ::toFile ).forEach (File ::delete );
689690 }
690691 assertFalse (testDir .exists ());
You can’t perform that action at this time.
0 commit comments