I have omitted irrelevant parts of the code:
[...]
try {
URL url = new URL(updateUrl);
BufferedReader input = new BufferedReader(new InputStreamReader(url.openStream()));
[...]
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
} finally {
input.close();
}
[...]
The problem is that on the finally "input.close()" Eclipse says that "input cannot be resolved".
I think it may be an scope problem, but I have seen code from other guys and it has usually this same form, so I do not know why it is not working here.
Any hints?
Thanks a lot in advance,