Skip to content

Commit 475306b

Browse files
author
Brian Burkhalter
committed
7057369: (fs spec) FileStore getUsableSpace and getUnallocatedSpace could be clearer
Reviewed-by: alanb
1 parent f016934 commit 475306b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/java.base/share/classes/java/nio/file/FileStore.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -103,11 +103,11 @@ protected FileStore() {
103103
* <p> The returned number of available bytes is a hint, but not a
104104
* guarantee, that it is possible to use most or any of these bytes. The
105105
* number of usable bytes is most likely to be accurate immediately
106-
* after the space attributes are obtained. It is likely to be made inaccurate
106+
* after this method returns. It is likely to be made inaccurate
107107
* by any external I/O operations including those made on the system outside
108108
* of this Java virtual machine.
109109
*
110-
* @return the number of bytes available
110+
* @return the current number of usable bytes
111111
*
112112
* @throws IOException
113113
* if an I/O error occurs
@@ -122,11 +122,11 @@ protected FileStore() {
122122
* <p> The returned number of unallocated bytes is a hint, but not a
123123
* guarantee, that it is possible to use most or any of these bytes. The
124124
* number of unallocated bytes is most likely to be accurate immediately
125-
* after the space attributes are obtained. It is likely to be
125+
* after this method returns. It is likely to be
126126
* made inaccurate by any external I/O operations including those made on
127127
* the system outside of this virtual machine.
128128
*
129-
* @return the number of unallocated bytes
129+
* @return the current number of unallocated bytes
130130
*
131131
* @throws IOException
132132
* if an I/O error occurs

0 commit comments

Comments
 (0)