blob: d1989284ad7196d4a33f4dc9d0044083db4afa6a [file] [log] [blame]
public int foo(int size, int max) {
if (size < max) {
try {
size = (long) stream.available();
}
catch (IOException e) {
}
}
else if (size == max) {
++size;
}
else {
--size;
}
return size;
}