Skip to content

Commit 6774e56

Browse files
Deepak kejriwalrpatil-openjdk
authored andcommitted
8214567: Use {@systemProperty} for definitions of system properties
8214569: Use {@systemProperty} for definitions of system properties Reviewed-by: lancea, mchung, alanb, naoto
1 parent b91fa3a commit 6774e56

13 files changed

Lines changed: 24 additions & 24 deletions

File tree

src/java.base/share/classes/java/lang/ClassLoader.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1864,12 +1864,12 @@ public static ClassLoader getPlatformClassLoader() {
18641864
* <p> The default system class loader is an implementation-dependent
18651865
* instance of this class.
18661866
*
1867-
* <p> If the system property "{@code java.system.class.loader}" is defined
1868-
* when this method is first invoked then the value of that property is
1869-
* taken to be the name of a class that will be returned as the system
1870-
* class loader. The class is loaded using the default system class loader
1871-
* and must define a public constructor that takes a single parameter of
1872-
* type {@code ClassLoader} which is used as the delegation parent. An
1867+
* <p> If the system property "{@systemProperty java.system.class.loader}"
1868+
* is defined when this method is first invoked then the value of that
1869+
* property is taken to be the name of a class that will be returned as the
1870+
* system class loader. The class is loaded using the default system class
1871+
* loader and must define a public constructor that takes a single parameter
1872+
* of type {@code ClassLoader} which is used as the delegation parent. An
18731873
* instance is then created using this constructor with the default system
18741874
* class loader as the parameter. The resulting class loader is defined
18751875
* to be the system class loader. During construction, the class loader

src/java.base/share/classes/java/net/URL.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ public final class URL implements java.io.Serializable {
304304
* or all providers have been exhausted.
305305
* <li>If the previous step fails to find a protocol handler, the
306306
* constructor reads the value of the system property:
307-
* <blockquote>{@code
307+
* <blockquote>{@systemProperty
308308
* java.protocol.handler.pkgs
309309
* }</blockquote>
310310
* If the value of that system property is not {@code null},

src/java.base/share/classes/java/time/zone/ZoneRulesProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
* <p>
100100
* The Java virtual machine has a default provider that provides zone rules
101101
* for the time-zones defined by IANA Time Zone Database (TZDB). If the system
102-
* property {@code java.time.zone.DefaultZoneRulesProvider} is defined then
102+
* property {@systemProperty java.time.zone.DefaultZoneRulesProvider} is defined then
103103
* it is taken to be the fully-qualified name of a concrete ZoneRulesProvider
104104
* class to be loaded as the default provider, using the system class loader.
105105
* If this system property is not defined, a system-default provider will be

src/java.base/share/classes/java/util/Currency.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
* the <code>getInstance</code> methods.
6161
* <p>
6262
* Users can supersede the Java runtime currency data by means of the system
63-
* property {@code java.util.currency.data}. If this system property is
63+
* property {@systemProperty java.util.currency.data}. If this system property is
6464
* defined then its value is the location of a properties file, the contents of
6565
* which are key/value pairs of the ISO 3166 country codes and the ISO 4217
6666
* currency data respectively. The value part consists of three ISO 4217 values

src/java.base/share/classes/java/util/PropertyResourceBundle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
* input stream, then the {@code PropertyResourceBundle} instance resets to the state
116116
* before the exception, re-reads the input stream in {@code ISO-8859-1}, and
117117
* continues reading. If the system property
118-
* {@code java.util.PropertyResourceBundle.encoding} is set to either
118+
* {@systemProperty java.util.PropertyResourceBundle.encoding} is set to either
119119
* "ISO-8859-1" or "UTF-8", the input stream is solely read in that encoding,
120120
* and throws the exception if it encounters an invalid sequence.
121121
* If "ISO-8859-1" is specified, characters that cannot be represented in

src/java.base/share/classes/java/util/jar/Pack200.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ private Pack200() {} //prevent instantiation
112112
/**
113113
* Obtain new instance of a class that implements Packer.
114114
* <ul>
115-
* <li><p>If the system property {@code java.util.jar.Pack200.Packer}
115+
* <li><p>If the system property {@systemProperty java.util.jar.Pack200.Packer}
116116
* is defined, then the value is taken to be the fully-qualified name
117117
* of a concrete implementation class, which must implement Packer.
118118
* This class is loaded and instantiated. If this process fails
@@ -138,7 +138,7 @@ public static synchronized Packer newPacker() {
138138
/**
139139
* Obtain new instance of a class that implements Unpacker.
140140
* <ul>
141-
* <li><p>If the system property {@code java.util.jar.Pack200.Unpacker}
141+
* <li><p>If the system property {@systemProperty java.util.jar.Pack200.Unpacker}
142142
* is defined, then the value is taken to be the fully-qualified
143143
* name of a concrete implementation class, which must implement Unpacker.
144144
* The class is loaded and instantiated. If this process fails

src/java.base/share/classes/java/util/spi/LocaleServiceProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
* described above as if the locale was not supported.
114114
* <p>
115115
* The search order of locale sensitive services can
116-
* be configured by using the "java.locale.providers" system property.
116+
* be configured by using the {@systemProperty java.locale.providers} system property.
117117
* This system property declares the user's preferred order for looking up
118118
* the locale sensitive services separated by a comma. It is only read at
119119
* the Java runtime startup, so the later call to System.setProperty() won't

src/java.logging/share/classes/java/util/logging/LogManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@
7676
* the initial configuration, as specified in the {@link #readConfiguration()}
7777
* method:
7878
* <ul>
79-
* <li>"java.util.logging.config.class"
80-
* <li>"java.util.logging.config.file"
79+
* <li>{@systemProperty java.util.logging.config.class}
80+
* <li>{@systemProperty java.util.logging.config.file}
8181
* </ul>
8282
* <p>
8383
* These two system properties may be specified on the command line to the "java"

src/java.logging/share/classes/java/util/logging/SimpleFormatter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* <a id="formatting">
4040
* <b>Configuration:</b></a>
4141
* The {@code SimpleFormatter} is initialized with the format string
42-
* specified in the {@code java.util.logging.SimpleFormatter.format}
42+
* specified in the {@systemProperty java.util.logging.SimpleFormatter.format}
4343
* property to {@linkplain #format(LogRecord) format} the log messages.
4444
* This property can be defined
4545
* in the {@linkplain LogManager#getProperty logging properties}

src/java.rmi/share/classes/java/rmi/server/ObjID.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
* equivalent to one returned by invoking the {@link UID#UID(short)}
5858
* constructor with the value zero.
5959
*
60-
* <p>If the system property <code>java.rmi.server.randomIDs</code>
60+
* <p>If the system property {@systemProperty java.rmi.server.randomIDs}
6161
* is defined to equal the string <code>"true"</code> (case insensitive),
6262
* then the {@link #ObjID()} constructor will use a cryptographically
6363
* strong random number generator to choose the object number of the

0 commit comments

Comments
 (0)