8241760: Typos: empty lines in javadoc, inconsistent indents, etc. (net and nio)

Reviewed-by: alanb, prappo, dfuchs
This commit is contained in:
Ivan Gerasimov 2020-03-30 13:59:16 -07:00
parent 916f00acc1
commit 53b2368d49
25 changed files with 107 additions and 99 deletions

View file

@ -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
@ -157,7 +157,7 @@ import sun.security.action.GetPropertyAction;
*/
public abstract class URLConnection {
/**
/**
* The URL represents the remote object on the World Wide Web to
* which this connection is opened.
* <p>
@ -172,7 +172,7 @@ public abstract class URLConnection {
*/
protected URL url;
/**
/**
* This variable is set by the {@code setDoInput} method. Its
* value is returned by the {@code getDoInput} method.
* <p>
@ -187,7 +187,7 @@ public abstract class URLConnection {
*/
protected boolean doInput = true;
/**
/**
* This variable is set by the {@code setDoOutput} method. Its
* value is returned by the {@code getDoOutput} method.
* <p>
@ -204,7 +204,7 @@ public abstract class URLConnection {
private static boolean defaultAllowUserInteraction = false;
/**
/**
* If {@code true}, this {@code URL} is being examined in
* a context in which it makes sense to allow user interactions such
* as popping up an authentication dialog. If {@code false},
@ -225,7 +225,7 @@ public abstract class URLConnection {
private static volatile boolean defaultUseCaches = true;
/**
/**
* If {@code true}, the protocol is allowed to use caching
* whenever it can. If {@code false}, the protocol must always
* try to get a fresh copy of the object.
@ -248,7 +248,7 @@ public abstract class URLConnection {
private static final ConcurrentHashMap<String,Boolean> defaultCaching =
new ConcurrentHashMap<>();
/**
/**
* Some protocols support skipping the fetching of the object unless
* the object has been modified more recently than a certain time.
* <p>
@ -268,7 +268,7 @@ public abstract class URLConnection {
*/
protected long ifModifiedSince = 0;
/**
/**
* If {@code false}, this connection object has not created a
* communications link to the specified URL. If {@code true},
* the communications link has been established.
@ -286,9 +286,9 @@ public abstract class URLConnection {
*/
private MessageHeader requests;
/**
* @since 1.1
*/
/**
* @since 1.1
*/
private static volatile FileNameMap fileNameMap;
/**
@ -372,7 +372,7 @@ public abstract class URLConnection {
* connection can be established, a
* java.net.SocketTimeoutException is raised. A timeout of zero is
* interpreted as an infinite timeout.
*
* <p> Some non-standard implementation of this method may ignore
* the specified timeout. To see the connect timeout set, please
* call getConnectTimeout().
@ -416,7 +416,7 @@ public abstract class URLConnection {
* for read, a java.net.SocketTimeoutException is raised. A
* timeout of zero is interpreted as an infinite timeout.
*
*<p> Some non-standard implementation of this method ignores the
* <p> Some non-standard implementation of this method ignores the
* specified timeout. To see the read timeout set, please call
* getReadTimeout().
*
@ -1032,7 +1032,7 @@ public abstract class URLConnection {
return ifModifiedSince;
}
/**
/**
* Returns the default value of a {@code URLConnection}'s
* {@code useCaches} flag.
* <p>
@ -1049,7 +1049,7 @@ public abstract class URLConnection {
return defaultUseCaches;
}
/**
/**
* Sets the default value of the {@code useCaches} field to the
* specified value. This default value can be over-ridden
* per protocol using {@link #setDefaultUseCaches(String,boolean)}
@ -1061,7 +1061,7 @@ public abstract class URLConnection {
defaultUseCaches = defaultusecaches;
}
/**
/**
* Sets the default value of the {@code useCaches} field for the named
* protocol to the given value. This value overrides any default setting
* set by {@link #setDefaultUseCaches(boolean)} for the given protocol.
@ -1078,7 +1078,7 @@ public abstract class URLConnection {
defaultCaching.put(protocol, defaultVal);
}
/**
/**
* Returns the default value of the {@code useCaches} flag for the given protocol. If
* {@link #setDefaultUseCaches(String,boolean)} was called for the given protocol,
* then that value is returned. Otherwise, if {@link #setDefaultUseCaches(boolean)}