blob: fe0e0d0163698542c7fa869c5b7538b49e2f6f85 [file] [log] [blame]
package trycatch18_in;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
class TestWithThrows3 {
public FileInputStream foo(int a) throws FileNotFoundException {
try (/*[*/ FileInputStream f = new FileInputStream("a.b")) {
return f;/*]*/
} catch (FileNotFoundException e) {
// do nothing
} catch (IOException e) {
}
return null;
}
}