Skip to content

Commit 895cc4f

Browse files
anupamdev20Julia Boes
authored andcommitted
8255675: Typo in java.net.HttpURLConnection
Reviewed-by: chegar
1 parent 5ed7044 commit 895cc4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/java.base/share/classes/java/net/HttpURLConnection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ public String getRequestMethod() {
511511
*/
512512
public int getResponseCode() throws IOException {
513513
/*
514-
* We're got the response code already
514+
* We've got the response code already
515515
*/
516516
if (responseCode != -1) {
517517
return responseCode;
@@ -530,7 +530,7 @@ public int getResponseCode() throws IOException {
530530
}
531531

532532
/*
533-
* If we can't a status-line then re-throw any exception
533+
* If we can't find a status-line then re-throw any exception
534534
* that getInputStream threw.
535535
*/
536536
String statusLine = getHeaderField(0);

0 commit comments

Comments
 (0)