diff options
author | Gao Weitao <victor.gao@huawei.com> | 2019-04-25 01:11:34 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-04-25 01:11:34 +0000 |
commit | 235cbf0f6bdc3590186c8a38b7cf9f1a928034c8 (patch) | |
tree | 8b72ca5c4eb6b3760587dbbccc3c5edc303329cb /service | |
parent | a5b05c66328d3feb46c2148baedaa78b780b3afb (diff) | |
parent | 0be514026c33ef058fb6778ac5be239dc2ee5fc8 (diff) |
Diffstat (limited to 'service')
-rw-r--r-- | service/src/main/java/org/onap/vfc/nfvo/multivimproxy/common/util/restclient/RestfulConfigure.java | 5 |
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); |