mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8255675: Typo in java.net.HttpURLConnection
Reviewed-by: chegar
This commit is contained in:
parent
5ed704484e
commit
895cc4f0a2
1 changed files with 2 additions and 2 deletions
|
@ -511,7 +511,7 @@ public abstract class HttpURLConnection extends URLConnection {
|
|||
*/
|
||||
public int getResponseCode() throws IOException {
|
||||
/*
|
||||
* We're got the response code already
|
||||
* We've got the response code already
|
||||
*/
|
||||
if (responseCode != -1) {
|
||||
return responseCode;
|
||||
|
@ -530,7 +530,7 @@ public abstract class HttpURLConnection extends URLConnection {
|
|||
}
|
||||
|
||||
/*
|
||||
* If we can't a status-line then re-throw any exception
|
||||
* If we can't find a status-line then re-throw any exception
|
||||
* that getInputStream threw.
|
||||
*/
|
||||
String statusLine = getHeaderField(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue