mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fix findbugs encoding warning in JuniperSrxResource All .xml files contain only utf-8/us-ascii compatible characters. If special characters are added to these files in the future, UTF-8 should be used for cross platform compatibility
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> This closes #398
This commit is contained in:
parent
438c90d783
commit
509c83bc74
@ -17,7 +17,7 @@
|
||||
package com.cloud.network.resource;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.FileReader;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.PrintWriter;
|
||||
@ -191,7 +191,7 @@ public class JuniperSrxResource implements ServerResource {
|
||||
throw new Exception("Failed to find Juniper SRX XML file: " + filename);
|
||||
}
|
||||
|
||||
try(FileReader fr = new FileReader(xmlFilePath);
|
||||
try(InputStreamReader fr = new InputStreamReader(new FileInputStream(xmlFilePath),"UTF-8");
|
||||
BufferedReader br = new BufferedReader(fr);) {
|
||||
String xml = "";
|
||||
String line;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user