diff --git a/src/java.base/share/classes/java/net/HttpURLConnection.java b/src/java.base/share/classes/java/net/HttpURLConnection.java index d458fefa41e..6bfddfaf6d8 100644 --- a/src/java.base/share/classes/java/net/HttpURLConnection.java +++ b/src/java.base/share/classes/java/net/HttpURLConnection.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 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 @@ -424,11 +424,11 @@ public abstract class HttpURLConnection extends URLConnection { * @see #getInstanceFollowRedirects * @since 1.3 */ - public void setInstanceFollowRedirects(boolean followRedirects) { + public void setInstanceFollowRedirects(boolean followRedirects) { instanceFollowRedirects = followRedirects; - } + } - /** + /** * Returns the value of this {@code HttpURLConnection}'s * {@code instanceFollowRedirects} field. * @@ -438,9 +438,9 @@ public abstract class HttpURLConnection extends URLConnection { * @see #setInstanceFollowRedirects(boolean) * @since 1.3 */ - public boolean getInstanceFollowRedirects() { - return instanceFollowRedirects; - } + public boolean getInstanceFollowRedirects() { + return instanceFollowRedirects; + } /** * Set the method for the URL request, one of: diff --git a/src/java.base/share/classes/java/net/Inet4Address.java b/src/java.base/share/classes/java/net/Inet4Address.java index c74458bd7bb..1c0b47eef9a 100644 --- a/src/java.base/share/classes/java/net/Inet4Address.java +++ b/src/java.base/share/classes/java/net/Inet4Address.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 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 @@ -51,7 +51,7 @@ import java.io.ObjectStreamException; *
When four parts are specified, each is interpreted as a byte of * data and assigned, from left to right, to the four bytes of an IPv4 * address. - + * *
When a three part address is specified, the last part is * interpreted as a 16-bit quantity and placed in the right most two * bytes of the network address. This makes the three part address diff --git a/src/java.base/share/classes/java/net/NetPermission.java b/src/java.base/share/classes/java/net/NetPermission.java index 74394aed5b6..d4f4dfd4d17 100644 --- a/src/java.base/share/classes/java/net/NetPermission.java +++ b/src/java.base/share/classes/java/net/NetPermission.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2019, 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 @@ -164,7 +164,7 @@ import java.util.StringTokenizer; * creating a ProtectionDomain/CodeSource for a class even though * that class really didn't come from that location. * - + * * * * @implNote diff --git a/src/java.base/share/classes/java/net/Proxy.java b/src/java.base/share/classes/java/net/Proxy.java index 672235b527f..63658aa82ff 100644 --- a/src/java.base/share/classes/java/net/Proxy.java +++ b/src/java.base/share/classes/java/net/Proxy.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 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 @@ -131,7 +131,7 @@ public class Proxy { return type() + " @ " + address(); } - /** + /** * Compares this object against the specified object. * The result is {@code true} if and only if the argument is * not {@code null} and it represents the same proxy as diff --git a/src/java.base/share/classes/java/net/SecureCacheResponse.java b/src/java.base/share/classes/java/net/SecureCacheResponse.java index 39281e244a1..ed38c5b53fc 100644 --- a/src/java.base/share/classes/java/net/SecureCacheResponse.java +++ b/src/java.base/share/classes/java/net/SecureCacheResponse.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 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 @@ -93,7 +93,7 @@ public abstract class SecureCacheResponse extends CacheResponse { public abstract Principal getPeerPrincipal() throws SSLPeerUnverifiedException; - /** + /** * Returns the principal that was sent to the server during * handshaking in the original connection that retrieved the * network resource. diff --git a/src/java.base/share/classes/java/net/Socket.java b/src/java.base/share/classes/java/net/Socket.java index d99f07116a0..31b171245fc 100644 --- a/src/java.base/share/classes/java/net/Socket.java +++ b/src/java.base/share/classes/java/net/Socket.java @@ -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 @@ -821,7 +821,6 @@ public class Socket implements java.io.Closeable { * then this method will continue to return the connected address * after the socket is closed. * - * @return a {@code SocketAddress} representing the remote endpoint of this * socket, or {@code null} if it is not connected yet. * @see #getInetAddress() diff --git a/src/java.base/share/classes/java/net/SocketImpl.java b/src/java.base/share/classes/java/net/SocketImpl.java index 9acafd5c24e..4c3e9c08970 100644 --- a/src/java.base/share/classes/java/net/SocketImpl.java +++ b/src/java.base/share/classes/java/net/SocketImpl.java @@ -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 @@ -187,7 +187,7 @@ public abstract class SocketImpl implements SocketOptions { * @return a stream for reading from this socket. * @throws IOException if an I/O error occurs when creating the * input stream. - */ + */ protected abstract InputStream getInputStream() throws IOException; /** diff --git a/src/java.base/share/classes/java/net/URL.java b/src/java.base/share/classes/java/net/URL.java index 7e37eac40c3..090943853be 100644 --- a/src/java.base/share/classes/java/net/URL.java +++ b/src/java.base/share/classes/java/net/URL.java @@ -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 @@ -414,7 +414,7 @@ public final class URL implements java.io.Serializable { * @param file the file on the host * @param handler the stream handler for the URL. * @throws MalformedURLException if an unknown protocol or the port - is a negative number other than -1 + * is a negative number other than -1 * @throws SecurityException * if a security manager exists and its * {@code checkPermission} method doesn't allow @@ -781,7 +781,7 @@ public final class URL implements java.io.Serializable { * * @param protocol the name of the protocol to use * @param host the name of the host - @param port the port number on the host + * @param port the port number on the host * @param file the file on the host * @param ref the internal reference in the URL */ diff --git a/src/java.base/share/classes/java/net/URLConnection.java b/src/java.base/share/classes/java/net/URLConnection.java index a26cbc9bf4a..810885525ed 100644 --- a/src/java.base/share/classes/java/net/URLConnection.java +++ b/src/java.base/share/classes/java/net/URLConnection.java @@ -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. *
@@ -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. *
@@ -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. *
@@ -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
@@ -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.
-
+ *
* 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.
*
- * Some non-standard implementation of this method ignores the
+ * 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.
*
@@ -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)}
diff --git a/src/java.base/share/classes/java/nio/channels/AsynchronousChannelGroup.java b/src/java.base/share/classes/java/nio/channels/AsynchronousChannelGroup.java
index 5e08f07c3f9..20f0c33b8c8 100644
--- a/src/java.base/share/classes/java/nio/channels/AsynchronousChannelGroup.java
+++ b/src/java.base/share/classes/java/nio/channels/AsynchronousChannelGroup.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 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
@@ -332,7 +332,7 @@ public abstract class AsynchronousChannelGroup {
/**
* Awaits termination of the group.
-
+ *
* This method blocks until the group has terminated, or the timeout
* occurs, or the current thread is interrupted, whichever happens first.
*
diff --git a/src/java.base/share/classes/java/nio/channels/SelectionKey.java b/src/java.base/share/classes/java/nio/channels/SelectionKey.java
index 0dd0128a55d..6130e5febb5 100644
--- a/src/java.base/share/classes/java/nio/channels/SelectionKey.java
+++ b/src/java.base/share/classes/java/nio/channels/SelectionKey.java
@@ -346,7 +346,7 @@ public abstract class SelectionKey {
* method always returns {@code false}.
When decoding, the {@code UTF-16} charset interprets the * byte-order mark at the beginning of the input stream to indicate the diff --git a/src/java.base/share/classes/java/nio/file/FileStore.java b/src/java.base/share/classes/java/nio/file/FileStore.java index 75e0803c888..2e89d0c50c4 100644 --- a/src/java.base/share/classes/java/nio/file/FileStore.java +++ b/src/java.base/share/classes/java/nio/file/FileStore.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2007, 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 @@ -237,7 +237,7 @@ public abstract class FileStore { * * @param attribute * the attribute to read - + * * @return the attribute value; {@code null} may be valid for some * attributes * diff --git a/src/java.base/share/classes/java/nio/file/attribute/BasicFileAttributeView.java b/src/java.base/share/classes/java/nio/file/attribute/BasicFileAttributeView.java index a6b3e41ee8e..37508cfd200 100644 --- a/src/java.base/share/classes/java/nio/file/attribute/BasicFileAttributeView.java +++ b/src/java.base/share/classes/java/nio/file/attribute/BasicFileAttributeView.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2007, 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 @@ -32,7 +32,7 @@ import java.io.IOException; * attributes common to many file systems. The basic set of file attributes * consist of mandatory and optional file attributes as * defined by the {@link BasicFileAttributes} interface. - + * *
The file attributes are retrieved from the file system as a bulk
* operation by invoking the {@link #readAttributes() readAttributes} method.
* This class also defines the {@link #setTimes setTimes} method to update the
diff --git a/src/java.base/share/classes/sun/net/www/URLConnection.java b/src/java.base/share/classes/sun/net/www/URLConnection.java
index 286e4eb5aee..f8901217bb1 100644
--- a/src/java.base/share/classes/sun/net/www/URLConnection.java
+++ b/src/java.base/share/classes/sun/net/www/URLConnection.java
@@ -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) {
diff --git a/src/java.base/share/classes/sun/net/www/protocol/http/HttpURLConnection.java b/src/java.base/share/classes/sun/net/www/protocol/http/HttpURLConnection.java
index f172fc7fb50..96ce9e9e604 100644
--- a/src/java.base/share/classes/sun/net/www/protocol/http/HttpURLConnection.java
+++ b/src/java.base/share/classes/sun/net/www/protocol/http/HttpURLConnection.java
@@ -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,
diff --git a/src/java.base/share/classes/sun/net/www/protocol/jar/JarURLConnection.java b/src/java.base/share/classes/sun/net/www/protocol/jar/JarURLConnection.java
index 5cb3e999a71..259a3a6b64f 100644
--- a/src/java.base/share/classes/sun/net/www/protocol/jar/JarURLConnection.java
+++ b/src/java.base/share/classes/sun/net/www/protocol/jar/JarURLConnection.java
@@ -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 useCaches 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 URLConnection's
* useCaches flag.
*
diff --git a/src/java.base/share/classes/sun/nio/ByteBuffered.java b/src/java.base/share/classes/sun/nio/ByteBuffered.java index 6a016419ee4..a547cefeb89 100644 --- a/src/java.base/share/classes/sun/nio/ByteBuffered.java +++ b/src/java.base/share/classes/sun/nio/ByteBuffered.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 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 @@ -28,20 +28,22 @@ package sun.nio; import java.nio.ByteBuffer; import java.io.IOException; -/** This is an interface to adapt existing APIs to use {@link java.nio.ByteBuffer - * ByteBuffers} as the underlying - * data format. Only the initial producer and final consumer have to be changed.
+/** + * This is an interface to adapt existing APIs to use {@link java.nio.ByteBuffer + * ByteBuffers} as the underlying data format. Only the initial producer and + * final consumer have to be changed. * - * For example, the Zip/Jar code supports {@link java.io.InputStream InputStreams}. - * To make the Zip code use {@link java.nio.MappedByteBuffer MappedByteBuffers} as - * the underlying data structure, it can create a class of InputStream that wraps the ByteBuffer, - * and implements the ByteBuffered interface. A co-operating class several layers - * away can ask the InputStream if it is an instance of ByteBuffered, then - * call the {@link #getByteBuffer()} method. + *
+ * For example, the Zip/Jar code supports {@link java.io.InputStream InputStreams}. + * To make the Zip code use {@link java.nio.MappedByteBuffer MappedByteBuffers} as + * the underlying data structure, it can create a class of InputStream that wraps + * the ByteBuffer, and implements the ByteBuffered interface. A co-operating class + * several layers away can ask the InputStream if it is an instance of ByteBuffered, + * then call the {@link #getByteBuffer()} method. */ public interface ByteBuffered { - /** + /** * Returns the {@code ByteBuffer} behind this object, if this particular * instance has one. An implementation of {@code getByteBuffer()} is allowed * to return {@code null} for any reason. diff --git a/src/java.base/share/classes/sun/nio/ch/IOVecWrapper.java b/src/java.base/share/classes/sun/nio/ch/IOVecWrapper.java index 3c43c5a6777..c5fa2b1948f 100644 --- a/src/java.base/share/classes/sun/nio/ch/IOVecWrapper.java +++ b/src/java.base/share/classes/sun/nio/ch/IOVecWrapper.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 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 @@ -32,10 +32,12 @@ import jdk.internal.ref.CleanerFactory; /** * Manipulates a native array of iovec structs on Solaris: * + *
{@code
* typedef struct iovec {
- * caddr_t iov_base;
- int iov_len;
+ * caddr_t iov_base;
+ * int iov_len;
* } iovec_t;
+ * }
*
* @author Mike McCloskey
* @since 1.4
diff --git a/src/java.base/solaris/classes/sun/nio/ch/SolarisEventPort.java b/src/java.base/solaris/classes/sun/nio/ch/SolarisEventPort.java
index 1e6be4f7bc4..af52693be90 100644
--- a/src/java.base/solaris/classes/sun/nio/ch/SolarisEventPort.java
+++ b/src/java.base/solaris/classes/sun/nio/ch/SolarisEventPort.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
@@ -113,7 +113,7 @@ class SolarisEventPort
@Override
void shutdownHandlerTasks() {
- /*
+ /*
* If no tasks are running then just release resources; otherwise
* write to the one end of the socketpair to wakeup any polling threads..
*/
diff --git a/src/java.base/windows/classes/sun/nio/fs/WindowsPathParser.java b/src/java.base/windows/classes/sun/nio/fs/WindowsPathParser.java
index c45858b4ae9..a7afbbe0274 100644
--- a/src/java.base/windows/classes/sun/nio/fs/WindowsPathParser.java
+++ b/src/java.base/windows/classes/sun/nio/fs/WindowsPathParser.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
@@ -159,7 +159,7 @@ class WindowsPathParser {
/**
* Remove redundant slashes from the rest of the path, forcing all slashes
* into the preferred slash.
- */
+ */
private static String normalize(StringBuilder sb, String path, int off) {
int len = path.length();
off = nextNonSlash(path, off, len);
diff --git a/src/jdk.charsets/share/classes/sun/nio/cs/ext/ISCII91.java b/src/jdk.charsets/share/classes/sun/nio/cs/ext/ISCII91.java
index f8773563bab..1e691599197 100644
--- a/src/jdk.charsets/share/classes/sun/nio/cs/ext/ISCII91.java
+++ b/src/jdk.charsets/share/classes/sun/nio/cs/ext/ISCII91.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 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
@@ -489,11 +489,11 @@ public class ISCII91 extends Charset implements HistoricallyNamedCharset
return CoderResult.UNDERFLOW;
}
- /*Rules:
- * 1)ATR,EXT,following character to be replaced with '\ufffd'
- * 2)Halant + Halant => '\u094d' (Virama) + '\u200c'(ZWNJ)
- * 3)Halant + Nukta => '\u094d' (Virama) + '\u200d'(ZWJ)
- */
+ /* Rules:
+ * 1) ATR,EXT,following character to be replaced with '\ufffd'
+ * 2) Halant + Halant => '\u094d' (Virama) + '\u200c'(ZWNJ)
+ * 3) Halant + Nukta => '\u094d' (Virama) + '\u200d'(ZWJ)
+ */
private CoderResult decodeArrayLoop(ByteBuffer src,
CharBuffer dst)
{
diff --git a/src/jdk.charsets/share/classes/sun/nio/cs/ext/ISO2022_JP.java b/src/jdk.charsets/share/classes/sun/nio/cs/ext/ISO2022_JP.java
index d5729117881..797df1b4c38 100644
--- a/src/jdk.charsets/share/classes/sun/nio/cs/ext/ISO2022_JP.java
+++ b/src/jdk.charsets/share/classes/sun/nio/cs/ext/ISO2022_JP.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 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
@@ -92,7 +92,7 @@ import static sun.nio.cs.CharsetMapping.*;
* Non-kanji area at 0x7921-0x7c7e.
*
* Compared to JIS_X_0208 mapping, this MS932 based mapping has
-
+ *
* (a)different mappings for 7 JIS codepoints
* 0x213d <-> U2015
* 0x2141 <-> UFF5E
diff --git a/src/jdk.sctp/share/classes/com/sun/nio/sctp/SctpMultiChannel.java b/src/jdk.sctp/share/classes/com/sun/nio/sctp/SctpMultiChannel.java
index 2300bbbe146..b9069173938 100644
--- a/src/jdk.sctp/share/classes/com/sun/nio/sctp/SctpMultiChannel.java
+++ b/src/jdk.sctp/share/classes/com/sun/nio/sctp/SctpMultiChannel.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2009, 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
@@ -510,7 +510,7 @@ public abstract class SctpMultiChannel
Association association)
throws IOException;
- /**
+ /**
* Returns a set of the socket options supported by this channel.
*
* This method will continue to return the set of options even after the
diff --git a/src/jdk.sctp/share/classes/com/sun/nio/sctp/SctpStandardSocketOptions.java b/src/jdk.sctp/share/classes/com/sun/nio/sctp/SctpStandardSocketOptions.java
index 27f175c1d98..b7c1d870f29 100644
--- a/src/jdk.sctp/share/classes/com/sun/nio/sctp/SctpStandardSocketOptions.java
+++ b/src/jdk.sctp/share/classes/com/sun/nio/sctp/SctpStandardSocketOptions.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2009, 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
@@ -190,11 +190,11 @@ public class SctpStandardSocketOptions {
* the association parameter is not required and this option can be
* set or queried directly.
*/
- public static final SctpSocketOption