summaryrefslogtreecommitdiffstats
path: root/service/src
diff options
context:
space:
mode:
Diffstat (limited to 'service/src')
-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);