Skip to content

Commit 6e148f5

Browse files
committed
Javadoc
1 parent e61abab commit 6e148f5

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

src/main/java/org/apache/commons/lang3/SystemUtils.java

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2037,9 +2037,9 @@ public class SystemUtils {
20372037
* If a {@link SecurityException} is caught, the return value is {@code defaultValue} and a message is written to {@code System.err}.
20382038
* </p>
20392039
*
2040-
* @param name the environment variable name
2041-
* @param defaultValue the default value
2042-
* @return the environment variable value or {@code defaultValue} if a security problem occurs
2040+
* @param name the environment variable name.
2041+
* @param defaultValue the default value.
2042+
* @return the environment variable value or {@code defaultValue} if a security problem occurs.
20432043
* @since 3.8
20442044
*/
20452045
public static String getEnvironmentVariable(final String name, final String defaultValue) {
@@ -2070,7 +2070,7 @@ public static String getHostName() {
20702070
/**
20712071
* Gets the current Java home directory as a {@link File}.
20722072
*
2073-
* @return a directory
2073+
* @return a directory.
20742074
* @throws SecurityException if a security manager exists and its {@code checkPropertyAccess} method doesn't allow access to the specified system property.
20752075
* @see SystemProperties#getJavaHome()
20762076
* @since 2.1
@@ -2082,7 +2082,7 @@ public static File getJavaHome() {
20822082
/**
20832083
* Gets the current Java home directory as a {@link File}.
20842084
*
2085-
* @return a directory
2085+
* @return a directory.
20862086
* @throws SecurityException if a security manager exists and its {@code checkPropertyAccess} method doesn't allow access to the specified system property.
20872087
* @see SystemProperties#getJavaHome()
20882088
* @since 3.18.0
@@ -2094,7 +2094,7 @@ public static Path getJavaHomePath() {
20942094
/**
20952095
* Gets the current Java IO temporary directory as a {@link File}.
20962096
*
2097-
* @return a directory
2097+
* @return a directory.
20982098
* @throws SecurityException if a security manager exists and its {@code checkPropertyAccess} method doesn't allow access to the specified system property.
20992099
* @see SystemProperties#getJavaIoTmpdir()
21002100
* @since 2.1
@@ -2106,7 +2106,7 @@ public static File getJavaIoTmpDir() {
21062106
/**
21072107
* Gets the current Java IO temporary directory as a {@link Path}.
21082108
*
2109-
* @return a directory
2109+
* @return a directory.
21102110
* @throws SecurityException if a security manager exists and its {@code checkPropertyAccess} method doesn't allow access to the specified system property.
21112111
* @see SystemProperties#getJavaIoTmpdir()
21122112
* @since 3.18.0
@@ -2121,8 +2121,8 @@ public static Path getJavaIoTmpDirPath() {
21212121
* The result depends on the value of the {@link #JAVA_SPECIFICATION_VERSION} constant.
21222122
* </p>
21232123
*
2124-
* @param versionPrefix the prefix for the Java version
2125-
* @return true if matches, or false if not or can't determine
2124+
* @param versionPrefix the prefix for the Java version.
2125+
* @return true if matches, or false if not or can't determine.
21262126
*/
21272127
private static boolean getJavaVersionMatches(final String versionPrefix) {
21282128
return isJavaVersionMatch(JAVA_SPECIFICATION_VERSION, versionPrefix);
@@ -2137,9 +2137,9 @@ private static boolean getJavaVersionMatches(final String versionPrefix) {
21372137
* The method returns {@code false} if {@link #OS_NAME} or {@link #OS_VERSION} is {@code null}.
21382138
* </p>
21392139
*
2140-
* @param osNamePrefix the prefix for the OS name
2141-
* @param osVersionPrefix the prefix for the version
2142-
* @return true if matches, or false if not or can't determine
2140+
* @param osNamePrefix the prefix for the OS name.
2141+
* @param osVersionPrefix the prefix for the version.
2142+
* @return true if matches, or false if not or can't determine.
21432143
*/
21442144
private static boolean getOsMatches(final String osNamePrefix, final String osVersionPrefix) {
21452145
return isOsMatch(OS_NAME, OS_VERSION, osNamePrefix, osVersionPrefix);
@@ -2154,8 +2154,8 @@ private static boolean getOsMatches(final String osNamePrefix, final String osVe
21542154
* The method returns {@code false} if {@link #OS_NAME} is {@code null}.
21552155
* </p>
21562156
*
2157-
* @param osNamePrefix the prefix for the OS name
2158-
* @return true if matches, or false if not or can't determine
2157+
* @param osNamePrefix the prefix for the OS name.
2158+
* @return true if matches, or false if not or can't determine.
21592159
*/
21602160
private static boolean getOsNameMatches(final String osNamePrefix) {
21612161
return isOsNameMatch(OS_NAME, osNamePrefix);
@@ -2167,7 +2167,7 @@ private static boolean getOsNameMatches(final String osNamePrefix) {
21672167
* The result is based on the system property {@value SystemProperties#USER_DIR}.
21682168
* </p>
21692169
*
2170-
* @return a directory
2170+
* @return a directory.
21712171
* @throws SecurityException if a security manager exists and its {@code checkPropertyAccess} method doesn't allow access to the specified system property.
21722172
* @see SystemProperties#getUserDir()
21732173
* @since 2.1
@@ -2182,7 +2182,7 @@ public static File getUserDir() {
21822182
* The result is based on the system property {@value SystemProperties#USER_DIR}.
21832183
* </p>
21842184
*
2185-
* @return a directory
2185+
* @return a directory.
21862186
* @throws SecurityException if a security manager exists and its {@code checkPropertyAccess} method doesn't allow access to the specified system property.
21872187
* @see SystemProperties#getUserDir()
21882188
* @since 3.18.0
@@ -2197,7 +2197,7 @@ public static Path getUserDirPath() {
21972197
* The result is based on the system property {@value SystemProperties#USER_HOME}.
21982198
* </p>
21992199
*
2200-
* @return a directory
2200+
* @return a directory.
22012201
* @throws SecurityException if a security manager exists and its {@code checkPropertyAccess} method doesn't allow access to the specified system property.
22022202
* @see SystemProperties#getUserHome()
22032203
* @since 2.1
@@ -2212,7 +2212,7 @@ public static File getUserHome() {
22122212
* The result is based on the system property {@value SystemProperties#USER_HOME}.
22132213
* </p>
22142214
*
2215-
* @return a directory
2215+
* @return a directory.
22162216
* @throws SecurityException if a security manager exists and its {@code checkPropertyAccess} method doesn't allow access to the specified system property.
22172217
* @see SystemProperties#getUserHome()
22182218
* @since 3.18.0
@@ -2227,7 +2227,7 @@ public static Path getUserHomePath() {
22272227
* The result is based on the system property {@value SystemProperties#USER_NAME}.
22282228
* </p>
22292229
*
2230-
* @return a name
2230+
* @return a name.
22312231
* @throws SecurityException if a security manager exists and its {@code checkPropertyAccess} method doesn't allow access to the specified system property.
22322232
* @see SystemProperties#getUserName()
22332233
* @since 3.10
@@ -2245,7 +2245,7 @@ public static String getUserName() {
22452245
* </p>
22462246
*
22472247
* @param defaultValue A default value.
2248-
* @return a name
2248+
* @return a name.
22492249
* @throws SecurityException if a security manager exists and its {@code checkPropertyAccess} method doesn't allow access to the specified system property.
22502250
* @see SystemProperties#getUserName()
22512251
* @since 3.10
@@ -2277,8 +2277,8 @@ public static boolean isJavaAwtHeadless() {
22772277
* The result is based on the system property saved in {@link #JAVA_SPECIFICATION_VERSION}.
22782278
* </p>
22792279
*
2280-
* @param requiredVersion the required version, for example 1.31f
2281-
* @return {@code true} if the actual version is equal or greater than the required version
2280+
* @param requiredVersion the required version, for example 1.31f.
2281+
* @return {@code true} if the actual version is equal or greater than the required version.
22822282
*/
22832283
public static boolean isJavaVersionAtLeast(final JavaVersion requiredVersion) {
22842284
return JAVA_SPECIFICATION_VERSION_AS_ENUM != null && JAVA_SPECIFICATION_VERSION_AS_ENUM.atLeast(requiredVersion);
@@ -2290,8 +2290,8 @@ public static boolean isJavaVersionAtLeast(final JavaVersion requiredVersion) {
22902290
* The result is based on the system property saved in {@link #JAVA_SPECIFICATION_VERSION}.
22912291
* </p>
22922292
*
2293-
* @param requiredVersion the required version, for example 1.31f
2294-
* @return {@code true} if the actual version is equal or less than the required version
2293+
* @param requiredVersion the required version, for example 1.31f.
2294+
* @return {@code true} if the actual version is equal or less than the required version.
22952295
* @since 3.9
22962296
*/
22972297
public static boolean isJavaVersionAtMost(final JavaVersion requiredVersion) {
@@ -2305,9 +2305,9 @@ public static boolean isJavaVersionAtMost(final JavaVersion requiredVersion) {
23052305
* This method is package private instead of private to support unit test invocation.
23062306
* </p>
23072307
*
2308-
* @param version the actual Java version
2309-
* @param versionPrefix the prefix for the expected Java version
2310-
* @return true if matches, or false if not or can't determine
2308+
* @param version the actual Java version.
2309+
* @param versionPrefix the prefix for the expected Java version.
2310+
* @return true if matches, or false if not or can't determine.
23112311
*/
23122312
static boolean isJavaVersionMatch(final String version, final String versionPrefix) {
23132313
if (version == null) {
@@ -2322,11 +2322,11 @@ static boolean isJavaVersionMatch(final String version, final String versionPref
23222322
* This method is package private instead of private to support unit test invocation.
23232323
* </p>
23242324
*
2325-
* @param osName the actual OS name
2326-
* @param osVersion the actual OS version
2327-
* @param osNamePrefix the prefix for the expected OS name
2328-
* @param osVersionPrefix the prefix for the expected OS version
2329-
* @return true if matches, or false if not or can't determine
2325+
* @param osName the actual OS name.
2326+
* @param osVersion the actual OS version.
2327+
* @param osNamePrefix the prefix for the expected OS name.
2328+
* @param osVersionPrefix the prefix for the expected OS version.
2329+
* @return true if matches, or false if not or can't determine.
23302330
*/
23312331
static boolean isOsMatch(final String osName, final String osVersion, final String osNamePrefix, final String osVersionPrefix) {
23322332
if (osName == null || osVersion == null) {
@@ -2358,9 +2358,9 @@ static boolean isOsNameMatch(final String osName, final String osNamePrefix) {
23582358
* This method is package private instead of private to support unit test invocation.
23592359
* </p>
23602360
*
2361-
* @param osVersion the actual OS version
2362-
* @param osVersionPrefix the prefix for the expected OS version
2363-
* @return true if matches, or false if not or can't determine
2361+
* @param osVersion the actual OS version.
2362+
* @param osVersionPrefix the prefix for the expected OS version.
2363+
* @return true if matches, or false if not or can't determine.
23642364
*/
23652365
static boolean isOsVersionMatch(final String osVersion, final String osVersionPrefix) {
23662366
if (StringUtils.isEmpty(osVersion)) {

0 commit comments

Comments
 (0)