Change-Id: I07fa8c614c5bc392a6e46d4cdb0fb30e8dcb2308
Issue-ID: VFC-1366
Signed-off-by: li jiale <lijiale@cmss.chinamobile.com>
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);