You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2020/02/19 20:15:23 UTC

[GitHub] [maven-doxia-sitetools] elharo commented on a change in pull request #14: fix some warnings

elharo commented on a change in pull request #14: fix some warnings
URL: https://github.com/apache/maven-doxia-sitetools/pull/14#discussion_r381517399
 
 

 ##########
 File path: doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/AbstractVerifier.java
 ##########
 @@ -51,10 +51,11 @@ protected HtmlPage htmlPage( String htmlFile )
         assertTrue( file.exists() );
 
         // HtmlUnit
-        WebClient webClient = new WebClient();
-        webClient.getOptions().setCssEnabled( false );
-
-        return (HtmlPage) webClient.getPage( file.toURI().toURL() );
+        try (WebClient webClient = new WebClient()) {
 
 Review comment:
   done

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services