mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8241760: Typos: empty lines in javadoc, inconsistent indents, etc. (net and nio)
Reviewed-by: alanb, prappo, dfuchs
This commit is contained in:
parent
916f00acc1
commit
53b2368d49
25 changed files with 107 additions and 99 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1995, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -43,19 +43,22 @@ public abstract class URLConnection extends java.net.URLConnection {
|
|||
|
||||
protected MessageHeader properties;
|
||||
|
||||
/** Create a URLConnection object. These should not be created directly:
|
||||
instead they should be created by protocol handers in response to
|
||||
URL.openConnection.
|
||||
@param u The URL that this connects to.
|
||||
/**
|
||||
* Create a URLConnection object. These should not be created directly:
|
||||
* instead they should be created by protocol handlers in response to
|
||||
* URL.openConnection.
|
||||
* @param u The URL that this connects to.
|
||||
*/
|
||||
public URLConnection (URL u) {
|
||||
super(u);
|
||||
properties = new MessageHeader();
|
||||
}
|
||||
|
||||
/** Call this routine to get the property list for this object.
|
||||
/**
|
||||
* Call this routine to get the property list for this object.
|
||||
* Properties (like content-type) that have explicit getXX() methods
|
||||
* associated with them should be accessed using those methods. */
|
||||
* associated with them should be accessed using those methods.
|
||||
*/
|
||||
public MessageHeader getProperties() {
|
||||
return properties;
|
||||
}
|
||||
|
@ -136,7 +139,8 @@ public abstract class URLConnection extends java.net.URLConnection {
|
|||
return props == null ? null : props.getValue(n);
|
||||
}
|
||||
|
||||
/** Call this routine to get the content-type associated with this
|
||||
/**
|
||||
* Call this routine to get the content-type associated with this
|
||||
* object.
|
||||
*/
|
||||
public String getContentType() {
|
||||
|
@ -190,7 +194,8 @@ public abstract class URLConnection extends java.net.URLConnection {
|
|||
properties.set("content-type", type);
|
||||
}
|
||||
|
||||
/** Call this routine to get the content-length associated with this
|
||||
/**
|
||||
* Call this routine to get the content-length associated with this
|
||||
* object.
|
||||
*/
|
||||
public int getContentLength() {
|
||||
|
@ -210,7 +215,8 @@ public abstract class URLConnection extends java.net.URLConnection {
|
|||
return l;
|
||||
}
|
||||
|
||||
/** Call this routine to set the content-length associated with this
|
||||
/**
|
||||
* Call this routine to set the content-length associated with this
|
||||
* object.
|
||||
*/
|
||||
protected void setContentLength(int length) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -166,7 +166,7 @@ public class HttpURLConnection extends java.net.HttpURLConnection {
|
|||
private static int timeout4ESBuffer = 0;
|
||||
|
||||
/* buffer size for buffered error stream;
|
||||
*/
|
||||
*/
|
||||
private static int bufSize4ES = 0;
|
||||
|
||||
/*
|
||||
|
@ -2355,8 +2355,8 @@ public class HttpURLConnection extends java.net.HttpURLConnection {
|
|||
NTLMAuthenticationProxy.supportsTransparentAuth;
|
||||
/* If the platform supports transparent authentication
|
||||
* then normally it's ok to do transparent auth to a proxy
|
||||
* because we generally trust proxies (chosen by the user)
|
||||
* But not in the case of 305 response where the server
|
||||
* because we generally trust proxies (chosen by the user)
|
||||
* But not in the case of 305 response where the server
|
||||
* chose it. */
|
||||
if (tryTransparentNTLMProxy && useProxyResponseCode) {
|
||||
tryTransparentNTLMProxy = false;
|
||||
|
@ -2377,7 +2377,7 @@ public class HttpURLConnection extends java.net.HttpURLConnection {
|
|||
* transparent authentication (Windows only) the username
|
||||
* and password will be picked up from the current logged
|
||||
* on users credentials.
|
||||
*/
|
||||
*/
|
||||
if (tryTransparentNTLMProxy ||
|
||||
(!tryTransparentNTLMProxy && a != null)) {
|
||||
ret = NTLMAuthenticationProxy.proxy.create(true, host,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -350,7 +350,7 @@ public class JarURLConnection extends java.net.JarURLConnection {
|
|||
jarFileURLConnection.setIfModifiedSince(ifmodifiedsince);
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* Sets the default value of the <code>useCaches</code> field to the
|
||||
* specified value.
|
||||
*
|
||||
|
@ -361,7 +361,7 @@ public class JarURLConnection extends java.net.JarURLConnection {
|
|||
jarFileURLConnection.setDefaultUseCaches(defaultusecaches);
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* Returns the default value of a <code>URLConnection</code>'s
|
||||
* <code>useCaches</code> flag.
|
||||
* <p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue