summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGao Weitao <victor.gao@huawei.com>2019-04-25 01:11:34 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-25 01:11:34 +0000
commit235cbf0f6bdc3590186c8a38b7cf9f1a928034c8 (patch)
tree8b72ca5c4eb6b3760587dbbccc3c5edc303329cb
parenta5b05c66328d3feb46c2148baedaa78b780b3afb (diff)
parent0be514026c33ef058fb6778ac5be239dc2ee5fc8 (diff)
Merge "fixed read configuration file error"1.3.0dublin
-rw-r--r--service/src/main/java/org/onap/vfc/nfvo/multivimproxy/common/util/restclient/RestfulConfigure.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/common/util/restclient/RestfulConfigure.java b/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/common/util/restclient/RestfulConfigure.java
index ad186c9..7d0c1eb 100644
--- a/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/common/util/restclient/RestfulConfigure.java
+++ b/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/common/util/restclient/RestfulConfigure.java
@@ -137,8 +137,9 @@ public class RestfulConfigure {
final StringBuilder jsonstr = new StringBuilder();
try (BufferedReader reader = new BufferedReader(new FileReader(file))){
final ReaderHelper rHelpper = new ReaderHelper(reader);
- while(null != rHelpper.getLine()) {
- jsonstr.append(rHelpper.getLine());
+ String readLine = null;
+ while(null != (readLine = rHelpper.getLine())) {
+ jsonstr.append(readLine);
}
} catch(final IOException e) {
LOG.error("load file exception:" + e);