mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8214567: Use {@systemProperty} for definitions of system properties
8214569: Use {@systemProperty} for definitions of system properties Reviewed-by: lancea, mchung, alanb, naoto
This commit is contained in:
parent
b91fa3a6c8
commit
6774e567aa
13 changed files with 24 additions and 24 deletions
|
@ -1864,12 +1864,12 @@ public abstract class ClassLoader {
|
||||||
* <p> The default system class loader is an implementation-dependent
|
* <p> The default system class loader is an implementation-dependent
|
||||||
* instance of this class.
|
* instance of this class.
|
||||||
*
|
*
|
||||||
* <p> If the system property "{@code java.system.class.loader}" is defined
|
* <p> If the system property "{@systemProperty java.system.class.loader}"
|
||||||
* when this method is first invoked then the value of that property is
|
* is defined when this method is first invoked then the value of that
|
||||||
* taken to be the name of a class that will be returned as the system
|
* property is taken to be the name of a class that will be returned as the
|
||||||
* class loader. The class is loaded using the default system class loader
|
* system class loader. The class is loaded using the default system class
|
||||||
* and must define a public constructor that takes a single parameter of
|
* loader and must define a public constructor that takes a single parameter
|
||||||
* type {@code ClassLoader} which is used as the delegation parent. An
|
* of type {@code ClassLoader} which is used as the delegation parent. An
|
||||||
* instance is then created using this constructor with the default system
|
* instance is then created using this constructor with the default system
|
||||||
* class loader as the parameter. The resulting class loader is defined
|
* class loader as the parameter. The resulting class loader is defined
|
||||||
* to be the system class loader. During construction, the class loader
|
* to be the system class loader. During construction, the class loader
|
||||||
|
|
|
@ -304,7 +304,7 @@ public final class URL implements java.io.Serializable {
|
||||||
* or all providers have been exhausted.
|
* or all providers have been exhausted.
|
||||||
* <li>If the previous step fails to find a protocol handler, the
|
* <li>If the previous step fails to find a protocol handler, the
|
||||||
* constructor reads the value of the system property:
|
* constructor reads the value of the system property:
|
||||||
* <blockquote>{@code
|
* <blockquote>{@systemProperty
|
||||||
* java.protocol.handler.pkgs
|
* java.protocol.handler.pkgs
|
||||||
* }</blockquote>
|
* }</blockquote>
|
||||||
* If the value of that system property is not {@code null},
|
* If the value of that system property is not {@code null},
|
||||||
|
|
|
@ -99,7 +99,7 @@ import java.util.Collections;
|
||||||
* <p>
|
* <p>
|
||||||
* The Java virtual machine has a default provider that provides zone rules
|
* The Java virtual machine has a default provider that provides zone rules
|
||||||
* for the time-zones defined by IANA Time Zone Database (TZDB). If the system
|
* for the time-zones defined by IANA Time Zone Database (TZDB). If the system
|
||||||
* property {@code java.time.zone.DefaultZoneRulesProvider} is defined then
|
* property {@systemProperty java.time.zone.DefaultZoneRulesProvider} is defined then
|
||||||
* it is taken to be the fully-qualified name of a concrete ZoneRulesProvider
|
* it is taken to be the fully-qualified name of a concrete ZoneRulesProvider
|
||||||
* class to be loaded as the default provider, using the system class loader.
|
* class to be loaded as the default provider, using the system class loader.
|
||||||
* If this system property is not defined, a system-default provider will be
|
* If this system property is not defined, a system-default provider will be
|
||||||
|
|
|
@ -60,7 +60,7 @@ import sun.util.logging.PlatformLogger;
|
||||||
* the <code>getInstance</code> methods.
|
* the <code>getInstance</code> methods.
|
||||||
* <p>
|
* <p>
|
||||||
* Users can supersede the Java runtime currency data by means of the system
|
* Users can supersede the Java runtime currency data by means of the system
|
||||||
* property {@code java.util.currency.data}. If this system property is
|
* property {@systemProperty java.util.currency.data}. If this system property is
|
||||||
* defined then its value is the location of a properties file, the contents of
|
* defined then its value is the location of a properties file, the contents of
|
||||||
* which are key/value pairs of the ISO 3166 country codes and the ISO 4217
|
* which are key/value pairs of the ISO 3166 country codes and the ISO 4217
|
||||||
* currency data respectively. The value part consists of three ISO 4217 values
|
* currency data respectively. The value part consists of three ISO 4217 values
|
||||||
|
|
|
@ -115,7 +115,7 @@ import sun.util.ResourceBundleEnumeration;
|
||||||
* input stream, then the {@code PropertyResourceBundle} instance resets to the state
|
* input stream, then the {@code PropertyResourceBundle} instance resets to the state
|
||||||
* before the exception, re-reads the input stream in {@code ISO-8859-1}, and
|
* before the exception, re-reads the input stream in {@code ISO-8859-1}, and
|
||||||
* continues reading. If the system property
|
* continues reading. If the system property
|
||||||
* {@code java.util.PropertyResourceBundle.encoding} is set to either
|
* {@systemProperty java.util.PropertyResourceBundle.encoding} is set to either
|
||||||
* "ISO-8859-1" or "UTF-8", the input stream is solely read in that encoding,
|
* "ISO-8859-1" or "UTF-8", the input stream is solely read in that encoding,
|
||||||
* and throws the exception if it encounters an invalid sequence.
|
* and throws the exception if it encounters an invalid sequence.
|
||||||
* If "ISO-8859-1" is specified, characters that cannot be represented in
|
* If "ISO-8859-1" is specified, characters that cannot be represented in
|
||||||
|
|
|
@ -112,7 +112,7 @@ public abstract class Pack200 {
|
||||||
/**
|
/**
|
||||||
* Obtain new instance of a class that implements Packer.
|
* Obtain new instance of a class that implements Packer.
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li><p>If the system property {@code java.util.jar.Pack200.Packer}
|
* <li><p>If the system property {@systemProperty java.util.jar.Pack200.Packer}
|
||||||
* is defined, then the value is taken to be the fully-qualified name
|
* is defined, then the value is taken to be the fully-qualified name
|
||||||
* of a concrete implementation class, which must implement Packer.
|
* of a concrete implementation class, which must implement Packer.
|
||||||
* This class is loaded and instantiated. If this process fails
|
* This class is loaded and instantiated. If this process fails
|
||||||
|
@ -138,7 +138,7 @@ public abstract class Pack200 {
|
||||||
/**
|
/**
|
||||||
* Obtain new instance of a class that implements Unpacker.
|
* Obtain new instance of a class that implements Unpacker.
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li><p>If the system property {@code java.util.jar.Pack200.Unpacker}
|
* <li><p>If the system property {@systemProperty java.util.jar.Pack200.Unpacker}
|
||||||
* is defined, then the value is taken to be the fully-qualified
|
* is defined, then the value is taken to be the fully-qualified
|
||||||
* name of a concrete implementation class, which must implement Unpacker.
|
* name of a concrete implementation class, which must implement Unpacker.
|
||||||
* The class is loaded and instantiated. If this process fails
|
* The class is loaded and instantiated. If this process fails
|
||||||
|
|
|
@ -113,7 +113,7 @@ import java.util.Locale;
|
||||||
* described above as if the locale was not supported.
|
* described above as if the locale was not supported.
|
||||||
* <p>
|
* <p>
|
||||||
* The search order of locale sensitive services can
|
* The search order of locale sensitive services can
|
||||||
* be configured by using the "java.locale.providers" system property.
|
* be configured by using the {@systemProperty java.locale.providers} system property.
|
||||||
* This system property declares the user's preferred order for looking up
|
* This system property declares the user's preferred order for looking up
|
||||||
* the locale sensitive services separated by a comma. It is only read at
|
* the locale sensitive services separated by a comma. It is only read at
|
||||||
* the Java runtime startup, so the later call to System.setProperty() won't
|
* the Java runtime startup, so the later call to System.setProperty() won't
|
||||||
|
|
|
@ -76,8 +76,8 @@ import static jdk.internal.logger.DefaultLoggerFinder.isSystem;
|
||||||
* the initial configuration, as specified in the {@link #readConfiguration()}
|
* the initial configuration, as specified in the {@link #readConfiguration()}
|
||||||
* method:
|
* method:
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li>"java.util.logging.config.class"
|
* <li>{@systemProperty java.util.logging.config.class}
|
||||||
* <li>"java.util.logging.config.file"
|
* <li>{@systemProperty java.util.logging.config.file}
|
||||||
* </ul>
|
* </ul>
|
||||||
* <p>
|
* <p>
|
||||||
* These two system properties may be specified on the command line to the "java"
|
* These two system properties may be specified on the command line to the "java"
|
||||||
|
|
|
@ -39,7 +39,7 @@ import jdk.internal.logger.SurrogateLogger;
|
||||||
* <a id="formatting">
|
* <a id="formatting">
|
||||||
* <b>Configuration:</b></a>
|
* <b>Configuration:</b></a>
|
||||||
* The {@code SimpleFormatter} is initialized with the format string
|
* The {@code SimpleFormatter} is initialized with the format string
|
||||||
* specified in the {@code java.util.logging.SimpleFormatter.format}
|
* specified in the {@systemProperty java.util.logging.SimpleFormatter.format}
|
||||||
* property to {@linkplain #format(LogRecord) format} the log messages.
|
* property to {@linkplain #format(LogRecord) format} the log messages.
|
||||||
* This property can be defined
|
* This property can be defined
|
||||||
* in the {@linkplain LogManager#getProperty logging properties}
|
* in the {@linkplain LogManager#getProperty logging properties}
|
||||||
|
|
|
@ -57,7 +57,7 @@ import java.util.concurrent.atomic.AtomicLong;
|
||||||
* equivalent to one returned by invoking the {@link UID#UID(short)}
|
* equivalent to one returned by invoking the {@link UID#UID(short)}
|
||||||
* constructor with the value zero.
|
* constructor with the value zero.
|
||||||
*
|
*
|
||||||
* <p>If the system property <code>java.rmi.server.randomIDs</code>
|
* <p>If the system property {@systemProperty java.rmi.server.randomIDs}
|
||||||
* is defined to equal the string <code>"true"</code> (case insensitive),
|
* is defined to equal the string <code>"true"</code> (case insensitive),
|
||||||
* then the {@link #ObjID()} constructor will use a cryptographically
|
* then the {@link #ObjID()} constructor will use a cryptographically
|
||||||
* strong random number generator to choose the object number of the
|
* strong random number generator to choose the object number of the
|
||||||
|
|
|
@ -68,7 +68,7 @@ import java.util.ServiceLoader;
|
||||||
* <ul>
|
* <ul>
|
||||||
*
|
*
|
||||||
* <li>If the system property
|
* <li>If the system property
|
||||||
* <code>java.rmi.server.RMIClassLoaderSpi</code> is defined, then if
|
* {@systemProperty java.rmi.server.RMIClassLoaderSpi} is defined, then if
|
||||||
* its value equals the string <code>"default"</code>, the provider
|
* its value equals the string <code>"default"</code>, the provider
|
||||||
* instance will be the value returned by an invocation of the {@link
|
* instance will be the value returned by an invocation of the {@link
|
||||||
* #getDefaultProviderInstance()} method, and for any other value, if
|
* #getDefaultProviderInstance()} method, and for any other value, if
|
||||||
|
@ -429,7 +429,7 @@ public class RMIClassLoader {
|
||||||
* system class loader such as the loader used for installed
|
* system class loader such as the loader used for installed
|
||||||
* extensions, or the bootstrap class loader (which may be
|
* extensions, or the bootstrap class loader (which may be
|
||||||
* represented by <code>null</code>), then the value of the
|
* represented by <code>null</code>), then the value of the
|
||||||
* <code>java.rmi.server.codebase</code> property (or possibly an
|
* {@systemProperty java.rmi.server.codebase} property (or possibly an
|
||||||
* earlier cached value) is returned, or
|
* earlier cached value) is returned, or
|
||||||
* <code>null</code> is returned if that property is not set.
|
* <code>null</code> is returned if that property is not set.
|
||||||
*
|
*
|
||||||
|
|
|
@ -66,7 +66,7 @@ import java.net.*;
|
||||||
* RMISocketFactory.setSocketFactory(new LoopbackSocketFactory());
|
* RMISocketFactory.setSocketFactory(new LoopbackSocketFactory());
|
||||||
* }</pre>
|
* }</pre>
|
||||||
*
|
*
|
||||||
* Set the {@code java.rmi.server.hostname} system property
|
* Set the {@systemProperty java.rmi.server.hostname} system property
|
||||||
* to {@code 127.0.0.1} to ensure that the generated stubs connect to the right
|
* to {@code 127.0.0.1} to ensure that the generated stubs connect to the right
|
||||||
* network interface.
|
* network interface.
|
||||||
*
|
*
|
||||||
|
|
|
@ -53,14 +53,14 @@ import javax.net.ssl.SSLSocketFactory;
|
||||||
* #hashCode() hashCode} may also need to be overridden.</p>
|
* #hashCode() hashCode} may also need to be overridden.</p>
|
||||||
*
|
*
|
||||||
* <p>If the system property
|
* <p>If the system property
|
||||||
* <code>javax.rmi.ssl.client.enabledCipherSuites</code> is specified,
|
* {@systemProperty javax.rmi.ssl.client.enabledCipherSuites} is specified,
|
||||||
* the {@link #createSocket(String,int)} method will call {@link
|
* the {@link #createSocket(String,int)} method will call {@link
|
||||||
* SSLSocket#setEnabledCipherSuites(String[])} before returning the
|
* SSLSocket#setEnabledCipherSuites(String[])} before returning the
|
||||||
* socket. The value of this system property is a string that is a
|
* socket. The value of this system property is a string that is a
|
||||||
* comma-separated list of SSL/TLS cipher suites to enable.</p>
|
* comma-separated list of SSL/TLS cipher suites to enable.</p>
|
||||||
*
|
*
|
||||||
* <p>If the system property
|
* <p>If the system property
|
||||||
* <code>javax.rmi.ssl.client.enabledProtocols</code> is specified,
|
* {@systemProperty javax.rmi.ssl.client.enabledProtocols} is specified,
|
||||||
* the {@link #createSocket(String,int)} method will call {@link
|
* the {@link #createSocket(String,int)} method will call {@link
|
||||||
* SSLSocket#setEnabledProtocols(String[])} before returning the
|
* SSLSocket#setEnabledProtocols(String[])} before returning the
|
||||||
* socket. The value of this system property is a string that is a
|
* socket. The value of this system property is a string that is a
|
||||||
|
@ -96,7 +96,7 @@ public class SslRMIClientSocketFactory
|
||||||
* <p>Creates an SSL socket.</p>
|
* <p>Creates an SSL socket.</p>
|
||||||
*
|
*
|
||||||
* <p>If the system property
|
* <p>If the system property
|
||||||
* <code>javax.rmi.ssl.client.enabledCipherSuites</code> is
|
* {@systemProperty javax.rmi.ssl.client.enabledCipherSuites} is
|
||||||
* specified, this method will call {@link
|
* specified, this method will call {@link
|
||||||
* SSLSocket#setEnabledCipherSuites(String[])} before returning
|
* SSLSocket#setEnabledCipherSuites(String[])} before returning
|
||||||
* the socket. The value of this system property is a string that
|
* the socket. The value of this system property is a string that
|
||||||
|
@ -104,7 +104,7 @@ public class SslRMIClientSocketFactory
|
||||||
* enable.</p>
|
* enable.</p>
|
||||||
*
|
*
|
||||||
* <p>If the system property
|
* <p>If the system property
|
||||||
* <code>javax.rmi.ssl.client.enabledProtocols</code> is
|
* {@systemProperty javax.rmi.ssl.client.enabledProtocols} is
|
||||||
* specified, this method will call {@link
|
* specified, this method will call {@link
|
||||||
* SSLSocket#setEnabledProtocols(String[])} before returning the
|
* SSLSocket#setEnabledProtocols(String[])} before returning the
|
||||||
* socket. The value of this system property is a string that is a
|
* socket. The value of this system property is a string that is a
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue