Fix 2 findbugs warnings in VmwareStorageManagerImpl.java Template files and metadata should be written to file in UTF-8

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #410
This commit is contained in:
Rafael da Fonseca 2015-06-14 14:11:56 +02:00 committed by Rohit Yadav
parent 11fec86ba3
commit 967da97f51
1 changed files with 2 additions and 2 deletions

View File

@ -786,7 +786,7 @@ public class VmwareStorageManagerImpl implements VmwareStorageManager {
// TODO a bit ugly here
BufferedWriter out = null;
try {
out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(installFullPath + "/template.properties")));
out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(installFullPath + "/template.properties"),"UTF-8"));
out.write("filename=" + templateName + ".ova");
out.newLine();
out.write("description=");
@ -826,7 +826,7 @@ public class VmwareStorageManagerImpl implements VmwareStorageManager {
// TODO a bit ugly here
BufferedWriter out = null;
try {
out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(installFullPath + "/" + templateName + ".ova.meta")));
out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(installFullPath + "/" + templateName + ".ova.meta"),"UTF-8"));
out.write("ova.filename=" + templateName + ".ova");
out.newLine();
out.write("version=1.0");