blob: 78bdd5461d1cb3257abbb3809d61b7545434a180 [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;
}