mirror of https://github.com/apache/cloudstack.git
findbugs: use preferred encoding explicitly
This commit is contained in:
parent
916a6d0104
commit
bbb165a037
|
|
@ -99,7 +99,7 @@ public final class LibvirtModifySshKeysCommandWrapper extends CommandWrapper<Mod
|
|||
final String prvKey = command.getPrvKey();
|
||||
try (FileOutputStream prvKStream = new FileOutputStream(prvKeyFile);){
|
||||
if ( prvKStream != null) {
|
||||
prvKStream.write(prvKey.getBytes());
|
||||
prvKStream.write(prvKey.getBytes(StringUtils.getPreferredCharset()));
|
||||
}
|
||||
} catch (final FileNotFoundException e) {
|
||||
result = "File" + sshprvkeypath + "is not found:" + e.toString();
|
||||
|
|
|
|||
Loading…
Reference in New Issue