8213490: Networking area typos and inconsistencies cleanup

Reviewed-by: alanb, chegar, dfuchs
This commit is contained in:
Pavel Rappo 2018-11-13 12:24:34 +00:00
parent 56db122656
commit 8c361a3e74
42 changed files with 87 additions and 87 deletions

View file

@ -101,7 +101,7 @@ public class NetworkClient {
* the NetworkClients will not work correctly in EBCDIC based systems.
* However, we cannot just use ASCII or ISO8859_1 universally, because in
* Asian locales, non-ASCII characters may be embedded in otherwise
* ASCII based protocols (eg. HTTP). The specifications (RFC2616, 2398)
* ASCII based protocols (e.g. HTTP). The specifications (RFC2616, 2398)
* are a little ambiguous in this matter. For instance, RFC2398 [part 2.1]
* says that the HTTP request URI should be escaped using a defined
* mechanism, but there is no way to specify in the escaped string what

View file

@ -154,7 +154,7 @@ public class FtpClient extends sun.net.ftp.FtpClient {
* the NetworkClients will not work correctly in EBCDIC based systems.
* However, we cannot just use ASCII or ISO8859_1 universally, because in
* Asian locales, non-ASCII characters may be embedded in otherwise
* ASCII based protocols (eg. HTTP). The specifications (RFC2616, 2398)
* ASCII based protocols (e.g. HTTP). The specifications (RFC2616, 2398)
* are a little ambiguous in this matter. For instance, RFC2398 [part 2.1]
* says that the HTTP request URI should be escaped using a defined
* mechanism, but there is no way to specify in the escaped string what

View file

@ -184,7 +184,7 @@ public class IPAddressUtil {
}
if (ch == '.' && ((j + INADDR4SZ) <= INADDR16SZ)) {
String ia4 = src.substring(curtok, srcb_length);
/* check this IPv4 address has 3 dots, ie. A.B.C.D */
/* check this IPv4 address has 3 dots, i.e. A.B.C.D */
int dot_count = 0, index=0;
while ((index = ia4.indexOf ('.', index)) != -1) {
dot_count ++;

View file

@ -183,7 +183,7 @@ public abstract class URLConnection extends java.net.URLConnection {
* @param type The content type to use. One of the
* content_* static variables in this
* class should be used.
* eg. setType(URL.content_html);
* e.g. setType(URL.content_html);
*/
public void setContentType(String type) {
contentType = type;

View file

@ -30,7 +30,7 @@ import java.net.PasswordAuthentication;
/**
* AuthCacheValue: interface to minimize exposure to authentication cache
* for external users (ie. plugin)
* for external users (i.e. plugin)
*
* @author Michael McMahon
*/

View file

@ -119,7 +119,7 @@ public abstract class AuthenticationInfo extends AuthCacheValue implements Clone
/**
* requests is used to ensure that interaction with the
* Authenticator for a particular realm is single threaded.
* ie. if multiple threads need to get credentials from the user
* i.e. if multiple threads need to get credentials from the user
* at the same time, then all but the first will block until
* the first completes its authentication.
*/

View file

@ -246,7 +246,7 @@ public class HttpURLConnection extends java.net.HttpURLConnection {
userAgent = agent;
// A set of net properties to control the use of authentication schemes
// when proxing/tunneling.
// when proxying/tunneling.
String p = getNetProperty("jdk.http.auth.tunneling.disabledSchemes");
disabledTunnelingSchemes = schemesListToSet(p);
p = getNetProperty("jdk.http.auth.proxying.disabledSchemes");
@ -3590,7 +3590,7 @@ public class HttpURLConnection extends java.net.HttpURLConnection {
/**
* expectedLength == -1 if the stream is chunked
* expectedLength > 0 if the stream is fixed content-length
* In the 2nd case, we make sure the expected number of
* In the 2nd case, we make sure the expected number
* of bytes are actually written
*/
StreamingOutputStream (OutputStream os, long expectedLength) {