Fix findbugs encoding warning in LibvirtCreatePrivateTemplateFromVolumeCommandWrapper Libvirt templates should be written in UTF-8, default was already doing that so this just gets rid of the findbugs warning

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

This closes #401
This commit is contained in:
Rafael da Fonseca 2015-06-13 01:58:38 +02:00 committed by Rohit Yadav
parent b869a16332
commit 3299f23ea2
1 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ public final class LibvirtCreatePrivateTemplateFromVolumeCommandWrapper extends
templateContent += "snapshot.name=" + dateFormat.format(date) + System.getProperty("line.separator");
try(FileOutputStream templFo = new FileOutputStream(templateProp);) {
templFo.write(templateContent.getBytes());
templFo.write(templateContent.getBytes("UTF-8"));
templFo.flush();
}catch(final IOException ex)
{
@ -175,4 +175,4 @@ public final class LibvirtCreatePrivateTemplateFromVolumeCommandWrapper extends
}
}
}
}
}