File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
storage/json-api/src/main/java Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -54,11 +54,10 @@ public static List<StorageObject> listBucket(String bucketName)
5454 Storage .Objects .List listRequest = client .objects ().list (bucketName );
5555
5656 List <StorageObject > results = new ArrayList <StorageObject >();
57- Objects objects ;
5857
5958 // Iterate through each page of results, and add them to our results list.
6059 do {
61- objects = listRequest .execute ();
60+ Objects objects = listRequest .execute ();
6261 // Add the items in this page of results to the list we'll return.
6362 results .addAll (objects .getItems ());
6463
@@ -165,7 +164,6 @@ public static void main(String[] args) {
165164 System .out .println (object .getName () + " (" + object .getSize () + " bytes)" );
166165 }
167166
168-
169167 // Create a temp file to upload
170168 Path tempPath = Files .createTempFile ("StorageSample" , "txt" );
171169 Files .write (tempPath , "Sample file" .getBytes ());
You can’t perform that action at this time.
0 commit comments