这段代码正在造成BufferedReader和InputStreamReader的内存泄漏问题,我认为这可能是一些异常的原因。我应该如何改变它?
try{
URL url = new URL(sMyUrl);
BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
while ((str = in.readLine()) != null) {
jsonString += str;
}
in.close();
}catch(Exception e){
}