blob: 54528cae3513eab82d7f33846b1855eca8fd2c2d [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;
}