Skip to content

Commit cc6d28f

Browse files
rsafonsecayadvr
authored andcommitted
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 apache#396
1 parent faa38ad commit cc6d28f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎plugins/hypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/CitrixResourceBase.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5048,10 +5048,10 @@ public boolean createVmdataFiles(String vmName, List<String[]> vmDataList, Strin
50485048
Process p = Runtime.getRuntime().exec(cmd);
50495049

50505050
BufferedReader stdInput = new BufferedReader(new
5051-
InputStreamReader(p.getInputStream()));
5051+
InputStreamReader(p.getInputStream(),Charset.defaultCharset()));
50525052

50535053
BufferedReader stdError = new BufferedReader(new
5054-
InputStreamReader(p.getErrorStream()));
5054+
InputStreamReader(p.getErrorStream(),Charset.defaultCharset()));
50555055

50565056
// read the output from the command
50575057
while ((s = stdInput.readLine()) != null) {

0 commit comments

Comments
 (0)