File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed
src/main/java/com/tencent/xinge Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 39
39
40
40
41
41
<repositories >
42
- <repository >
43
- <id >maven-oa</id >
44
- <url >http://maven.oa.com/nexus/content/groups/public</url >
45
- </repository >
46
42
<repository >
47
43
<id >xingePush</id >
48
44
<url >https://raw.githubusercontent.com/xingePush/maven-repository/release/</url >
64
60
<properties >
65
61
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
66
62
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
67
- <java .version>1.8</java .version>
68
63
<jackson .version>1.9.9</jackson .version>
64
+ <java .version>1.6</java .version>
69
65
</properties >
70
66
71
67
<dependencies >
141
137
<artifactId >maven-compiler-plugin</artifactId >
142
138
<version >3.3</version >
143
139
<configuration >
144
- <source >7 </source >
145
- <target >7 </target >
140
+ <source >${java.version} </source >
141
+ <target >${java.version} </target >
146
142
<encoding >${project.build.sourceEncoding} </encoding >
147
143
<maxmem >1024m</maxmem >
148
144
<fork >true</fork >
237
233
<artifactId >maven-compiler-plugin</artifactId >
238
234
<version >3.0</version >
239
235
<configuration >
240
- <source >1.8 </source >
241
- <target >1.8 </target >
236
+ <source >${java.version} </source >
237
+ <target >${java.version} </target >
242
238
</configuration >
243
239
</plugin >
244
240
<plugin >
285
281
</build >
286
282
</profile >
287
283
</profiles >
288
- </project >
284
+ </project >
Original file line number Diff line number Diff line change 1
1
package com .tencent .xinge ;
2
2
3
+ import com .google .common .base .Charsets ;
3
4
import java .io .*;
4
5
import java .net .MalformedURLException ;
5
6
import java .net .URL ;
6
- import java .nio .charset .StandardCharsets ;
7
7
8
8
import com .tencent .xinge .push .app .PushAppRequest ;
9
9
import org .apache .commons .codec .binary .Base64 ;
@@ -99,7 +99,7 @@ private JSONObject callRestful(String apiAddress, String jsonRequestString) {
99
99
https .setDoOutput (true );
100
100
https .setRequestProperty ("Authorization" , "Basic " + authStringEnc );
101
101
102
- byte [] out = jsonRequestString .getBytes (StandardCharsets .UTF_8 );
102
+ byte [] out = jsonRequestString .getBytes (Charsets .UTF_8 );
103
103
int length = out .length ;
104
104
105
105
https .setFixedLengthStreamingMode (length );
You can’t perform that action at this time.
0 commit comments