mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fix 2 findbugs encoding warnings in VmwareContext.java StreamReaders should use encoding specified in the connection object
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> This closes #405
This commit is contained in:
parent
00cdd66351
commit
f03411ca04
@ -357,7 +357,7 @@ public class VmwareContext {
|
||||
}
|
||||
out.flush();
|
||||
|
||||
br = new BufferedReader(new InputStreamReader(conn.getInputStream()));
|
||||
br = new BufferedReader(new InputStreamReader(conn.getInputStream(),conn.getContentEncoding()));
|
||||
String line;
|
||||
while ((line = br.readLine()) != null) {
|
||||
if (s_logger.isTraceEnabled())
|
||||
@ -483,7 +483,7 @@ public class VmwareContext {
|
||||
out.write(content);
|
||||
out.flush();
|
||||
|
||||
BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
|
||||
BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream(),conn.getContentEncoding()));
|
||||
String line;
|
||||
while ((line = in.readLine()) != null) {
|
||||
if (s_logger.isTraceEnabled())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user