Skip to content

Commit f96d650

Browse files
committed
Javadoc
1 parent ec308ac commit f96d650

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

src/main/java/org/apache/commons/io/FileUtils.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,7 @@ private static File getParentFile(final File file) {
15401540
}
15411541

15421542
/**
1543-
* Gets a {@link File} representing the system temporary directory.
1543+
* Gets a {@link File} representing the system temporary directory based on the Java system property {@code java.io.tmpdir}.
15441544
*
15451545
* @return the system temporary directory as a File.
15461546
* @since 2.0
@@ -1551,11 +1551,10 @@ public static File getTempDirectory() {
15511551

15521552
/**
15531553
* Gets the path to the system temporary directory.
1554-
*
1555-
* WARNING: this method relies on the Java system property 'java.io.tmpdir'
1556-
* which may or may not have a trailing file separator.
1557-
* This can affect code that uses String processing to manipulate pathnames rather
1558-
* than the standard library methods in classes such as {@link File}
1554+
* <p>
1555+
* WARNING: This method reads the Java system property {@code java.io.tmpdir}, which may or may not have a trailing file separator. This can affect code
1556+
* that uses String processing to manipulate pathnames rather than the standard library methods in classes such as {@link File}.
1557+
* </p>
15591558
*
15601559
* @return the path to the system temporary directory as a String.
15611560
* @since 2.0
@@ -1565,7 +1564,7 @@ public static String getTempDirectoryPath() {
15651564
}
15661565

15671566
/**
1568-
* Gets a {@link File} representing the user's home directory.
1567+
* Gets a {@link File} representing the user's home directory based on the Java system property {@code user.home}.
15691568
*
15701569
* @return the user's home directory.
15711570
* @since 2.0
@@ -1575,7 +1574,7 @@ public static File getUserDirectory() {
15751574
}
15761575

15771576
/**
1578-
* Gets the path to the user's home directory.
1577+
* Gets the path to the user's home directory based on the Java system property {@code user.home}.
15791578
*
15801579
* @return the path to the user's home directory.
15811580
* @since 2.0

0 commit comments

Comments
 (0)