> Uff, finally I've noticed that neither BufferedReader nor 
> InputStreamReader
> throw any exception. So reader != null is really always true...

No it isn't. 

RuntimeExceptions can be thrown from any method/constructor.
And an OutOfMemory can always happen within a new operation.

Carlos

> 
> Best regards,
> Maxim Shafirov
> IntelliJ Software, http://www.intellij.com/
> "Develop with pleasure!"
> 
> >
> >    BufferedReader reader = null;
> >    try {
> >      reader = new BufferedReader(new InputStreamReader(is));
> >      return reader.readLine();
> >    }
> >    finally {
> >      if (reader != null) {
> >        try {
> >          reader.close();
> >        }
> >        catch (IOException ex) {
> >          // ignore
> >        }
> >      }
> >    }
> >


_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to