RFR: 8255675: Typo in java.net.HttpURLConnection

ANUPAM DEV github.com+73814169+anupamdev20 at openjdk.java.net
Tue Nov 17 08:27:04 UTC 2020


On Tue, 17 Nov 2020 07:50:10 GMT, ANUPAM DEV <github.com+73814169+anupamdev20 at openjdk.org> wrote:

> 8255675: Typo in java.net.HttpURLConnection

Hello All,

Could you please review this fix?

Bug: https://bugs.openjdk.java.net/browse/JDK-8255675

Problem description: In the getResponseCode method, the following comment was unclear:
"If we can't a status-line then re-throw any exception"

Fix: Comment is changed to 
"If we can't find a status-line then re-throw any exception"

Apart from that there was another small typo which I fixed:
"We're got the response code already" is changed to
"We've got the response code already"

-------------

PR: https://git.openjdk.java.net/jdk/pull/1250


More information about the net-dev mailing list