Skip to content

Commit 1f47fef

Browse files
committed
checkstyle done
1 parent 6bde74f commit 1f47fef

File tree

16 files changed

+572
-535
lines changed

16 files changed

+572
-535
lines changed

src/main/java/com/qiniu/common/Constants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public final class Constants {
99
/**
1010
* 版本号
1111
*/
12-
public static final String VERSION = "7.2.18";
12+
public static final String VERSION = "7.2.19";
1313
/**
1414
* 块大小,不能改变
1515
*/

src/main/java/com/qiniu/http/Client.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ public Client(Configuration cfg) {
4444
cfg.dispatcherMaxRequests, cfg.dispatcherMaxRequestsPerHost,
4545
cfg.connectionPoolMaxIdleCount, cfg.connectionPoolMaxIdleMinutes);
4646
}
47-
47+
4848
public Client(com.qiniu.sms.Configuration cfg) {
4949
this(null, false, null,
5050
cfg.connectTimeout, cfg.readTimeout, cfg.writeTimeout,
5151
cfg.dispatcherMaxRequests, cfg.dispatcherMaxRequestsPerHost,
5252
cfg.connectionPoolMaxIdleCount, cfg.connectionPoolMaxIdleMinutes);
5353
}
54-
54+
5555
/**
5656
* 构建一个自定义配置的 HTTP Client 类
5757
*/
@@ -182,7 +182,7 @@ public Response post(String url, byte[] body, StringMap headers, String contentT
182182
}
183183
return post(url, rbody, headers);
184184
}
185-
185+
186186
public Response put(String url, byte[] body, StringMap headers, String contentType) throws QiniuException {
187187
RequestBody rbody;
188188
if (body != null && body.length > 0) {
@@ -210,7 +210,7 @@ private Response post(String url, RequestBody body, StringMap headers) throws Qi
210210
Request.Builder requestBuilder = new Request.Builder().url(url).post(body);
211211
return send(requestBuilder, headers);
212212
}
213-
213+
214214
private Response put(String url, RequestBody body, StringMap headers) throws QiniuException {
215215
Request.Builder requestBuilder = new Request.Builder().url(url).put(body);
216216
return send(requestBuilder, headers);
@@ -329,7 +329,7 @@ public void accept(String key, Object value) {
329329
e.printStackTrace();
330330
throw new QiniuException(e);
331331
}
332-
332+
333333
r = Response.create(res, tag.ip, duration);
334334
if (r.statusCode >= 300) {
335335
throw new QiniuException(r);

src/main/java/com/qiniu/http/MethodType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.qiniu.http;
22

33
public enum MethodType {
4-
GET(false),
4+
GET(false),
55
PUT(true),
66
POST(true),
77
DELETE(false),

src/main/java/com/qiniu/sms/Configuration.java

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22

33
import com.qiniu.common.Constants;
44

5-
public class Configuration implements Cloneable{
6-
/**
5+
public class Configuration implements Cloneable {
6+
/*
7+
* 特殊默认域名
8+
*/
9+
public static String defaultSmsHost = "https://sms.qiniuapi.com";
10+
/**
711
* 连接超时时间 单位秒(默认10s)
812
*/
913
public int connectTimeout = Constants.CONNECT_TIMEOUT;
@@ -35,15 +39,10 @@ public class Configuration implements Cloneable{
3539
* 上传失败重试次数
3640
*/
3741
public int retryMax = 5;
38-
39-
/*
40-
* 特殊默认域名
41-
*/
42-
public static String defaultSmsHost = "https://sms.qiniuapi.com";
43-
42+
4443
public Configuration() {
4544
}
46-
45+
4746
public Configuration clone() {
4847
try {
4948
return (Configuration) super.clone();
@@ -52,7 +51,7 @@ public Configuration clone() {
5251
}
5352
return null;
5453
}
55-
54+
5655
public String smsHost() {
5756
return defaultSmsHost;
5857
}

0 commit comments

Comments
 (0)