格式化代码

This commit is contained in:
czp 2018-02-02 17:35:56 +08:00
parent 0219a0c8fe
commit 4b072d0266
2 changed files with 6 additions and 2 deletions

View File

@ -7,6 +7,8 @@ apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'signing'
sourceCompatibility = 1.8
repositories {
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
mavenCentral()

View File

@ -44,8 +44,10 @@ public class SortParamsAndSignInterceptor implements Interceptor {
nameAndValues.add(String.format("%s=%s", "sign", calculateSign(nameAndValues)));
return chain.proceed(
request.newBuilder()
.url(httpUrl.newBuilder().encodedQuery(generateQuery(nameAndValues)).build())
.build()
.url(httpUrl.newBuilder()
.encodedQuery(generateQuery(nameAndValues))
.build()
).build()
);
}