8221597: A typo in the Java API doc for File.getUsableSpace()
Brian Burkhalter
brian.burkhalter at oracle.com
Thu Apr 4 23:50:00 UTC 2019
Please review this one word change to fix [1].
Summary: s/unallocated/unavailable/ at line 1872
--- a/src/java.base/share/classes/java/io/File.java
+++ b/src/java.base/share/classes/java/io/File.java
@@ -1869,7 +1869,7 @@
*
* <p> The returned number of available bytes is a hint, but not a
* guarantee, that it is possible to use most or any of these bytes. The
- * number of unallocated bytes is most likely to be accurate immediately
+ * number of available bytes is most likely to be accurate immediately
* after this call. It is likely to be made inaccurate by any external
* I/O operations including those made on the system outside of this
* virtual machine. This method makes no guarantee that write operations
Thanks,
Brian
[1] https://bugs.openjdk.java.net/browse/JDK-8221597
More information about the core-libs-dev
mailing list