Skip to content

Commit 697be2a

Browse files
author
jordanqin
committed
update qcloud sdk to 1.5.52
1 parent dadd035 commit 697be2a

File tree

11 files changed

+101
-9
lines changed

11 files changed

+101
-9
lines changed

QCloudFoundation/.idea/.gitignore

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

QCloudFoundation/.idea/compiler.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

QCloudFoundation/.idea/gradle.xml

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

QCloudFoundation/.idea/jarRepositories.xml

Lines changed: 40 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

QCloudFoundation/.idea/misc.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

QCloudFoundation/.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

QCloudFoundation/foundation/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
minSdkVersion 15
88
targetSdkVersion 28
99

10-
versionCode 10552
11-
versionName "1.5.52"
10+
versionCode 10553
11+
versionName "1.5.53"
1212

1313
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
1414

QCloudFoundation/foundation/src/main/java/com/tencent/qcloud/core/http/ResponseFileConverter.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ private T pipeToContentUri(HttpResponse<T> response, long contentLength)
131131
e.printStackTrace();
132132
throw new QCloudClientException("write local uri error for " + e.toString(), e);
133133
} finally {
134-
Util.closeQuietly(output);
134+
if(output != null) {
135+
Util.closeQuietly(output);
136+
}
135137
}
136138
}
137139

QCloudFoundation/foundation/src/main/java/com/tencent/qcloud/qcloudxml/core/IXmlAdapter.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@
99
/**
1010
* XML适配器(用于解析与编码)
1111
*/
12-
public interface IXmlAdapter<T> {
13-
T fromXml(XmlPullParser xmlPullParser, String elementName) throws XmlPullParserException, IOException;
12+
public abstract class IXmlAdapter<T> {
13+
public T fromXml(XmlPullParser xmlPullParser, String elementName) throws XmlPullParserException, IOException{
14+
throw new IllegalStateException("The fromXml method is not implemented");
15+
}
1416

15-
void toXml(XmlSerializer xmlSerializer, T value, String elementName) throws XmlPullParserException, IOException;
17+
public void toXml(XmlSerializer xmlSerializer, T value, String elementName) throws XmlPullParserException, IOException{
18+
throw new IllegalStateException("The toXml method is not implemented");
19+
}
1620
}

QCloudFoundation/quic/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ android {
3131
minSdkVersion 15
3232
targetSdkVersion 27
3333

34-
versionCode 10538
35-
versionName "1.5.38"
34+
versionCode 10539
35+
versionName "1.5.39"
3636

3737
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
3838

0 commit comments

Comments
 (0)