mirror of https://github.com/apache/cloudstack.git
Fix another findbugs encoding warning in CitrixResourceBase In this case, using default encoding is desired, since the purpose is to read shell command output, which uses the platform's default encoding. This gets rid of the findbugs warning.
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> This closes #396
This commit is contained in:
parent
faa38ad416
commit
cc6d28fc98
|
|
@ -5048,10 +5048,10 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
|
|||
Process p = Runtime.getRuntime().exec(cmd);
|
||||
|
||||
BufferedReader stdInput = new BufferedReader(new
|
||||
InputStreamReader(p.getInputStream()));
|
||||
InputStreamReader(p.getInputStream(),Charset.defaultCharset()));
|
||||
|
||||
BufferedReader stdError = new BufferedReader(new
|
||||
InputStreamReader(p.getErrorStream()));
|
||||
InputStreamReader(p.getErrorStream(),Charset.defaultCharset()));
|
||||
|
||||
// read the output from the command
|
||||
while ((s = stdInput.readLine()) != null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue