File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/java.base/share/classes/java/io Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 1994, 2020 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 1994, 2021 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -1376,7 +1376,9 @@ public boolean mkdirs() {
1376
1376
* file from one filesystem to another, it might not be atomic, and it
1377
1377
* might not succeed if a file with the destination abstract pathname
1378
1378
* already exists. The return value should always be checked to make sure
1379
- * that the rename operation was successful.
1379
+ * that the rename operation was successful. As instances of {@code File}
1380
+ * are immutable, this File object is not changed to name the destination
1381
+ * file or directory.
1380
1382
*
1381
1383
* <p> Note that the {@link java.nio.file.Files} class defines the {@link
1382
1384
* java.nio.file.Files#move move} method to move or rename a file in a
You can’t perform that action at this time.
0 commit comments