Skip to content

Commit 45b2608

Browse files
author
bulezeng(曾卫进)
committed
xingePush#28 CallRestful 修改去掉synchronized 字段
1 parent b2cff2c commit 45b2608

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/tencent/xinge/XingeApp.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ public class XingeApp {
3434
private String authStringEnc = null;
3535

3636

37-
RESTAPIV3 restapiV3 = new RESTAPIV3();
37+
private RESTAPIV3 restapiV3 = new RESTAPIV3();
38+
3839
private OkHttpClient client = new OkHttpClient.Builder()
3940
.connectTimeout(10, TimeUnit.SECONDS)//设置连接超时时间
4041
.readTimeout(10, TimeUnit.SECONDS)//设置读取超时时间
@@ -98,7 +99,7 @@ public JSONObject deviceTag(String jsonRequest) {
9899
return callRestful(restapiV3.getRestApiTagUrl(), jsonRequest);
99100
}
100101

101-
private synchronized JSONObject callRestful(String apiAddress, String jsonRequestString) {
102+
private JSONObject callRestful(String apiAddress, String jsonRequestString) {
102103
JSONObject jsonRet = null;
103104

104105
RequestBody requestBody = RequestBody.create(JSON_MEDIA_TYPE, jsonRequestString);

0 commit comments

Comments
 (0)