mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fix findbugs encoding warning Vmds files created by ESX are UTF-8 encoded
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> This closes #403
This commit is contained in:
parent
f8b364b7c7
commit
f5f93884d1
@ -39,7 +39,7 @@ public class SnapshotDescriptor {
|
|||||||
public void parse(byte[] vmsdFileContent) throws IOException {
|
public void parse(byte[] vmsdFileContent) throws IOException {
|
||||||
BufferedReader in = null;
|
BufferedReader in = null;
|
||||||
try {
|
try {
|
||||||
in = new BufferedReader(new InputStreamReader(new ByteArrayInputStream(vmsdFileContent)));
|
in = new BufferedReader(new InputStreamReader(new ByteArrayInputStream(vmsdFileContent),"UTF-8"));
|
||||||
String line;
|
String line;
|
||||||
while ((line = in.readLine()) != null) {
|
while ((line = in.readLine()) != null) {
|
||||||
// TODO, remember to remove this log, temporarily added for debugging purpose
|
// TODO, remember to remove this log, temporarily added for debugging purpose
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user