Skip to content

Commit 1c81a6e

Browse files
committed
格式调整
1 parent ba75ac4 commit 1c81a6e

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/main/java/com/qiniu/storage/BucketManager.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ private Response post(String url, byte[] body) throws QiniuException {
137137
return client.post(url, body, headers, Client.FormMime);
138138
}
139139

140-
public static Batch createBatch(){
140+
public static Batch createBatch() {
141141
return new Batch();
142142
}
143143

@@ -148,32 +148,32 @@ private Batch() {
148148
this.ops = new ArrayList<String>();
149149
}
150150

151-
public Batch copy(String from_bucket, String from_key, String to_bucket, String to_key){
151+
public Batch copy(String from_bucket, String from_key, String to_bucket, String to_key) {
152152
String from = entry(from_bucket, from_key);
153153
String to = entry(to_bucket, to_key);
154154
ops.add("copy" + "/" + from + "/" + to);
155155
return this;
156156
}
157157

158-
public Batch rename(String from_bucket, String from_key, String to_key){
158+
public Batch rename(String from_bucket, String from_key, String to_key) {
159159
return move(from_bucket, from_key, from_bucket, to_key);
160160
}
161161

162-
public Batch move(String from_bucket, String from_key, String to_bucket, String to_key){
162+
public Batch move(String from_bucket, String from_key, String to_bucket, String to_key) {
163163
String from = entry(from_bucket, from_key);
164164
String to = entry(to_bucket, to_key);
165165
ops.add("move" + "/" + from + "/" + to);
166166
return this;
167167
}
168168

169-
public Batch delete(String bucket, String... keys){
169+
public Batch delete(String bucket, String... keys) {
170170
for (String key : keys) {
171171
ops.add("delete" + "/" + entry(bucket, key));
172172
}
173173
return this;
174174
}
175175

176-
public Batch stat(String bucket, String... keys){
176+
public Batch stat(String bucket, String... keys) {
177177
for (String key : keys) {
178178
ops.add("stat" + "/" + entry(bucket, key));
179179
}

src/main/java/com/qiniu/util/StringUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public static String join(Collection<String> list, String sep, String prefix) {
109109
count++;
110110
if (it != null) {
111111
buf.append(it);
112-
if(count < arraySize) {
112+
if (count < arraySize) {
113113
buf.append(sep);
114114
}
115115
}

src/test/java/com/qiniu/storage/BucketTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public void testListIterator() {
5656

5757
while (it.hasNext()) {
5858
FileInfo[] items = it.next();
59-
if(items.length > 1) {
59+
if (items.length > 1) {
6060
assertNotNull(items[0]);
6161
}
6262
}
@@ -275,7 +275,7 @@ public void testBatch() {
275275
try {
276276
Response r = bucketManager.batch(ops);
277277
BatchStatus[] bs = r.jsonToObject(BatchStatus[].class);
278-
for(BatchStatus b : bs){
278+
for (BatchStatus b : bs) {
279279
assertEquals(200, b.code);
280280
}
281281
} catch (QiniuException e) {

0 commit comments

Comments
 (0)