Code Review
/
vfc
/
nfvo
/
driver
/
vnfm
/
svnfm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
(from parent 1:
eaee3ce
)
Merge "Remove the useless judgement"
author
Gao Weitao
<victor.gao@huawei.com>
Wed, 20 Sep 2017 09:43:25 +0000
(09:43 +0000)
committer
Gerrit Code Review
<gerrit@onap.org>
Wed, 20 Sep 2017 09:43:25 +0000
(09:43 +0000)
huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/common/DownloadCsarManager.java
patch
|
blob
|
history
huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/adapter/impl/AdapterResourceManager.java
patch
|
blob
|
history
diff --git
a/huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/common/DownloadCsarManager.java
b/huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/common/DownloadCsarManager.java
index
b2157ed
..
66d3b65
100644
(file)
--- a/
huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/common/DownloadCsarManager.java
+++ b/
huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/common/DownloadCsarManager.java
@@
-96,6
+96,7
@@
public class DownloadCsarManager {
is.close();
fileout.flush();
fileout.close();
+ client.close();
status = Constant.DOWNLOADCSAR_SUCCESS;
} catch(Exception e) {
diff --git
a/huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/adapter/impl/AdapterResourceManager.java
b/huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/adapter/impl/AdapterResourceManager.java
index
f9fe98f
..
13765a8
100644
(file)
--- a/
huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/adapter/impl/AdapterResourceManager.java
+++ b/
huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/adapter/impl/AdapterResourceManager.java
@@
-596,12
+596,8
@@
public class AdapterResourceManager implements IResourceManager {
if(fileContent != null) {
jsonObject = JSONObject.fromObject(fileContent).getJSONObject("vnfdIds");
}
- if(ins != null) {
- ins.close();
- }
- if(bins != null) {
- bins.close();
- }
+ ins.close();
+ bins.close();
} catch(Exception e) {
LOG.error(fileName + " read error!", e);
} finally {