blob: 8344d90083c21dd2425a53e811e8a00736cb8b11 [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;
}