Skip to content

Commit 18bdfb6

Browse files
authored
Add documentation to FakeStorageRpc and LocalStorageHelper (googleapis#2906)
* Add documentation to FakeStorageRpc and LocalStorageHelper to reduce confusions on method list(String bucket, Map options)
1 parent 2f5d941 commit 18bdfb6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/testing/FakeStorageRpc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
import javax.annotation.concurrent.NotThreadSafe;
4242

4343
/**
44-
* A bare-bones in-memory implementation of Storage, meant for testing.
44+
* A bare-bones in-memory implementation of StorageRpc, meant for testing.
4545
*
4646
* <p>This class is <i>not</i> thread-safe. It's also (currently) limited in the following ways:
4747
* <ul>

google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/testing/LocalStorageHelper.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
* <li>IAM operations</li>
4949
* </ul>
5050
* </ul>
51+
*
52+
* {@link FakeStorageRpc#list(String, Map<Option, ?>)} lists all the objects that have been created rather than
53+
* the objects in the provided bucket. Since this class does not support creating, listing and deleting buckets,
54+
* the parameter bucket here is not actually used and on serves as a placeholder.
5155
*/
5256
public final class LocalStorageHelper {
5357

0 commit comments

Comments
 (0)