Skip to content

Commit 50c6ba9

Browse files
committed
---
yaml --- r: 215 b: refs/heads/master c: b68088c h: refs/heads/master i: 213: ee20f1f 211: 3bdeacf 207: 267aa2e v: v3
1 parent 29943c8 commit 50c6ba9

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 0246cc726279c70b370ebae5bf15f1c7a276bd77
2+
refs/heads/master: b68088c647810672af21dc4a0453376c24e4e023

trunk/src/main/java/com/google/gcloud/examples/StorageExample.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
import java.util.Arrays;
4141
import java.util.HashMap;
4242
import java.util.Map;
43-
import java.util.Random;
4443

4544
/**
4645
* An example of using the Google Cloud Storage.
@@ -195,7 +194,6 @@ private static class UploadAction extends StorageAction<Tuple<Path, Blob>> {
195194
@Override
196195
public void run(StorageService storage, Tuple<Path, Blob> tuple) throws Exception {
197196
if (Files.size(tuple.x()) > 1024) {
198-
Random rnd = new Random();
199197
try (BlobWriteChannel writer = storage.writer(tuple.y())) {
200198
byte[] buffer = new byte[1024];
201199
try (InputStream input = Files.newInputStream(tuple.x())) {

0 commit comments

Comments
 (0)