fix issues reported by coverity

This commit is contained in:
Skylot
2014-11-29 16:49:16 +03:00
parent 10198bc87f
commit 5e722c6827
5 changed files with 17 additions and 8 deletions
@@ -102,7 +102,7 @@ public class JadxUpdate {
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
if (con.getResponseCode() == 200) {
Reader reader = new InputStreamReader(con.getInputStream());
Reader reader = new InputStreamReader(con.getInputStream(), "UTF-8");
return GSON.fromJson(reader, type);
}
return null;