Skip to content

Commit e597cf0

Browse files
committed
Deprecated methods removed from EncodingSniffer, HttpClientConverter, WebResponse, and WebResponseWrapper
1 parent 630c67a commit e597cf0

File tree

5 files changed

+1
-18
lines changed

5 files changed

+1
-18
lines changed

src/main/java/org/htmlunit/httpclient/HttpClientConverter.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,12 @@
1616

1717
import java.net.MalformedURLException;
1818
import java.net.URL;
19-
import java.nio.charset.Charset;
2019
import java.util.ArrayList;
2120
import java.util.Collection;
22-
import java.util.Date;
2321
import java.util.List;
2422
import java.util.Set;
2523

2624
import org.apache.http.NoHttpResponseException;
27-
import org.apache.http.client.utils.DateUtils;
28-
import org.apache.http.client.utils.URLEncodedUtils;
2925
import org.apache.http.cookie.ClientCookie;
3026
import org.apache.http.cookie.Cookie;
3127
import org.apache.http.cookie.CookieOrigin;
@@ -35,8 +31,6 @@
3531
import org.apache.http.message.BufferedHeader;
3632
import org.apache.http.util.CharArrayBuffer;
3733
import org.htmlunit.BrowserVersion;
38-
import org.htmlunit.http.HttpStatus;
39-
import org.htmlunit.http.HttpUtils;
4034
import org.htmlunit.util.NameValuePair;
4135
import org.htmlunit.util.UrlUtils;
4236

src/main/java/org/htmlunit/javascript/host/xml/XMLHttpRequest.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff 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_;

src/main/java/org/htmlunit/util/EncodingSniffer.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import static java.nio.charset.StandardCharsets.UTF_16LE;
2020
import static java.nio.charset.StandardCharsets.UTF_8;
2121

22-
import java.io.ByteArrayInputStream;
2322
import java.io.IOException;
2423
import java.io.InputStream;
2524
import java.nio.charset.Charset;

src/test/java/org/htmlunit/WebResponse2Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/test/java/org/htmlunit/util/mocks/WebResponseMock.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff 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");

0 commit comments

Comments
 (0)