File tree Expand file tree Collapse file tree 5 files changed +1
-18
lines changed
Expand file tree Collapse file tree 5 files changed +1
-18
lines changed Original file line number Diff line number Diff line change 1616
1717import java .net .MalformedURLException ;
1818import java .net .URL ;
19- import java .nio .charset .Charset ;
2019import java .util .ArrayList ;
2120import java .util .Collection ;
22- import java .util .Date ;
2321import java .util .List ;
2422import java .util .Set ;
2523
2624import org .apache .http .NoHttpResponseException ;
27- import org .apache .http .client .utils .DateUtils ;
28- import org .apache .http .client .utils .URLEncodedUtils ;
2925import org .apache .http .cookie .ClientCookie ;
3026import org .apache .http .cookie .Cookie ;
3127import org .apache .http .cookie .CookieOrigin ;
3531import org .apache .http .message .BufferedHeader ;
3632import org .apache .http .util .CharArrayBuffer ;
3733import org .htmlunit .BrowserVersion ;
38- import org .htmlunit .http .HttpStatus ;
39- import org .htmlunit .http .HttpUtils ;
4034import org .htmlunit .util .NameValuePair ;
4135import org .htmlunit .util .UrlUtils ;
4236
Original file line number Diff line number Diff line change @@ -1345,11 +1345,6 @@ public Charset getContentCharset() {
13451345 return null ;
13461346 }
13471347
1348- @ Override
1349- public Charset getContentCharsetOrNull () {
1350- return null ;
1351- }
1352-
13531348 @ Override
13541349 public WebRequest getWebRequest () {
13551350 return request_ ;
Original file line number Diff line number Diff line change 1919import static java .nio .charset .StandardCharsets .UTF_16LE ;
2020import static java .nio .charset .StandardCharsets .UTF_8 ;
2121
22- import java .io .ByteArrayInputStream ;
2322import java .io .IOException ;
2423import java .io .InputStream ;
2524import java .nio .charset .Charset ;
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public void charsetInMetaTag() throws Exception {
4848 + "<body>foo</body>\n "
4949 + "</html>" ;
5050 final HtmlPage page = loadPage (html );
51- assertSame (UTF_8 , page .getWebResponse ().getContentCharsetOrNull ());
51+ assertSame (UTF_8 , page .getWebResponse ().getContentCharset ());
5252 assertEquals (html , page .getWebResponse ().getContentAsString ());
5353 }
5454
Original file line number Diff line number Diff line change @@ -66,11 +66,6 @@ public Charset getContentCharset() {
6666 throw new RuntimeException ("not implemented" );
6767 }
6868
69- @ Override
70- public Charset getContentCharsetOrNull () {
71- throw new RuntimeException ("not implemented" );
72- }
73-
7469 @ Override
7570 public String getContentType () {
7671 throw new RuntimeException ("not implemented" );
You can’t perform that action at this time.
0 commit comments