mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8214563: Use {@systemProperty} in specification of system properties in java.nio packages
8214565: Use {@systemProperty} for definitions of system properties Reviewed-by: alanb, rriggs
This commit is contained in:
parent
2e04779cef
commit
9a193f38a3
6 changed files with 23 additions and 19 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2007, 2019, 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
|
||||
|
@ -70,7 +70,9 @@ import java.util.concurrent.TimeUnit;
|
|||
* </thead>
|
||||
* <tbody>
|
||||
* <tr>
|
||||
* <th scope="row"> {@code java.nio.channels.DefaultThreadPool.threadFactory} </th>
|
||||
* <th scope="row">
|
||||
* {@systemProperty java.nio.channels.DefaultThreadPool.threadFactory}
|
||||
* </th>
|
||||
* <td> The value of this property is taken to be the fully-qualified name
|
||||
* of a concrete {@link java.util.concurrent.ThreadFactory ThreadFactory}
|
||||
* class. The class is loaded using the system class loader and instantiated.
|
||||
|
@ -81,7 +83,9 @@ import java.util.concurrent.TimeUnit;
|
|||
* construction of the default group. </td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <th scope="row"> {@code java.nio.channels.DefaultThreadPool.initialSize} </th>
|
||||
* <th scope="row">
|
||||
* {@systemProperty java.nio.channels.DefaultThreadPool.initialSize}
|
||||
* </th>
|
||||
* <td> The value of the {@code initialSize} parameter for the default
|
||||
* group (see {@link #withCachedThreadPool withCachedThreadPool}).
|
||||
* The value of the property is taken to be the {@code String}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2007, 2019, 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
|
||||
|
@ -138,10 +138,10 @@ public abstract class AsynchronousChannelProvider {
|
|||
* <ol>
|
||||
*
|
||||
* <li><p> If the system property
|
||||
* {@code java.nio.channels.spi.AsynchronousChannelProvider} is defined
|
||||
* then it is taken to be the fully-qualified name of a concrete provider class.
|
||||
* The class is loaded and instantiated; if this process fails then an
|
||||
* unspecified error is thrown. </p></li>
|
||||
* {@systemProperty java.nio.channels.spi.AsynchronousChannelProvider} is
|
||||
* defined then it is taken to be the fully-qualified name of a concrete
|
||||
* provider class. The class is loaded and instantiated; if this process
|
||||
* fails then an unspecified error is thrown. </p></li>
|
||||
*
|
||||
* <li><p> If a provider class has been installed in a jar file that is
|
||||
* visible to the system class loader, and that jar file contains a
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2019, 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
|
||||
|
@ -143,10 +143,10 @@ public abstract class SelectorProvider {
|
|||
* <ol>
|
||||
*
|
||||
* <li><p> If the system property
|
||||
* {@code java.nio.channels.spi.SelectorProvider} is defined then it is
|
||||
* taken to be the fully-qualified name of a concrete provider class.
|
||||
* The class is loaded and instantiated; if this process fails then an
|
||||
* unspecified error is thrown. </p></li>
|
||||
* {@systemProperty java.nio.channels.spi.SelectorProvider} is defined
|
||||
* then it is taken to be the fully-qualified name of a concrete provider
|
||||
* class. The class is loaded and instantiated; if this process fails then
|
||||
* an unspecified error is thrown. </p></li>
|
||||
*
|
||||
* <li><p> If a provider class has been installed in a jar file that is
|
||||
* visible to the system class loader, and that jar file contains a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue