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:
Rafael da Fonseca 2015-06-12 22:47:17 +02:00 committed by Rohit Yadav
parent faa38ad416
commit cc6d28fc98
1 changed files with 2 additions and 2 deletions

View File

@ -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) {