Skip to content

Commit 933283a

Browse files
committed
format
1 parent 1d687d2 commit 933283a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/main/java/com/qiniu/api/rs/PutPolicy.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ public String marshal() throws JSONException {
113113
if (this.persistentOps != null && this.persistentOps.length() > 0) {
114114
stringer.key("persistentOps").value(this.persistentOps);
115115
}
116-
if (this.transform != null && this.transform.length() > 0) {
117-
stringer.key("transform").value(this.transform);
116+
if (this.transform != null && this.transform.length() > 0) {
117+
stringer.key("transform").value(this.transform);
118118
}
119119
if (this.fopTimeout > 0) {
120-
stringer.key("fopTimeout").value(this.fopTimeout);
120+
stringer.key("fopTimeout").value(this.fopTimeout);
121121
}
122122
stringer.key("deadline").value(this.deadline);
123123
stringer.endObject();

src/test/java/com/qiniu/testing/IOTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,16 @@ public void testPut() throws Exception {
7070
* 测试的时候请将例中的 localFile 改成合法的文件路径。
7171
**/
7272
public void testPutTransform() throws Exception {
73-
PutPolicy putPolicy = new PutPolicy(bucketName);
74-
putPolicy.transform = "avthumb/mp3";
75-
putPolicy.fopTimeout = 60;
73+
PutPolicy putPolicy = new PutPolicy(bucketName);
74+
putPolicy.transform = "avthumb/mp3";
75+
putPolicy.fopTimeout = 60;
7676

77-
String uptoken = putPolicy.token(mac);
77+
String uptoken = putPolicy.token(mac);
7878
String localFile = "/Users/ikbear/7niu/music.mp4";
79-
String key = "music-ikbear.mp3";
79+
String key = "music-ikbear.mp3";
8080

8181
PutExtra extra = new PutExtra();
82-
82+
8383
PutRet ret = IoApi.putFile(uptoken, key, localFile, extra);
8484
assertTrue(ret.ok());
8585
}

0 commit comments

Comments
 (0)