mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
- fix tests - fixes to show external annotations GitOrigin-RevId: 79cde38663de10c2985b72e76e98372fef214b20
33 lines
518 B
Java
33 lines
518 B
Java
import org.jetbrains.annotations.Nullable;
|
|
|
|
import java.util.List;
|
|
|
|
class Test {
|
|
List<Pojo> things;
|
|
|
|
void foo() {
|
|
while(true) {
|
|
Pojo x = newMethod();
|
|
if (x == null) break;
|
|
System.out.println(x.it);
|
|
}
|
|
}
|
|
|
|
@Nullable
|
|
private Test.Pojo newMethod() {
|
|
Pojo x = things.get(0);
|
|
|
|
if(x.it > 0) {
|
|
return null;
|
|
}
|
|
things.remove(x);
|
|
return x;
|
|
}
|
|
|
|
static class Pojo {
|
|
double it;
|
|
Pojo(double w) {
|
|
it = w;
|
|
}
|
|
}
|
|
} |