Sign in
android
/
platform
/
external
/
jetbrains
/
kotlin
/
refs/tags/v1.4.0-rc
/
.
/
nj2k
/
testData
/
newJ2k
/
tryWithResource
/
WithReturnAtEnd.java
blob: cd93cd3d21491c999a8d93f0cd2dfda28d99b1c0 [
file
] [
log
] [
blame
]
//file
import
java
.
io
.*;
public
class
C
{
int
foo
()
{
try
(
InputStream
stream
=
new
ByteArrayInputStream
(
new
byte
[
10
]))
{
// reading something
int
c
=
stream
.
read
();
return
c
;
}
catch
(
IOException
e
)
{
System
.
out
.
println
(
e
);
return
-
1
;
}
}
}