Skip to content

Commit

Permalink
Deprecate temporaryFolder() in Files (#1856)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunt-ing committed May 4, 2020
1 parent 41a6617 commit c9c68c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/assertj/core/util/Files.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ private static List<String> fileNamesIn(File dir, boolean recurse) {
*
* @return the system's temporary directory.
* @throws RuntimeException if this method cannot find or create the system's temporary directory.
*
* @deprecated Use either {@link org.junit.jupiter.api.io.TempDir} or {@link org.junit.rules.TemporaryFolder}
*/
@Deprecated
public static File temporaryFolder() {
File temp = new File(temporaryFolderPath());
if (!temp.isDirectory()) {
Expand Down

0 comments on commit c9c68c3

Please sign in to comment.