mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
moving tests to CE
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class Bar {
|
||||
|
||||
void navigateTo() {
|
||||
Computable c = new Computable() {
|
||||
@Nullable
|
||||
public Object compute() {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
interface Computable {
|
||||
@Nullable Object compute();
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class Bar {
|
||||
|
||||
void navigateTo(final@Nullable Object p) {
|
||||
if (p == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Runnable c = new Runnable() {
|
||||
public void run() {
|
||||
p.hashCode();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
public class Bar {
|
||||
|
||||
void submit(Runnable r) { }
|
||||
String[] foos() { return new String[0]; }
|
||||
|
||||
void navigateTo() {
|
||||
submit(new Runnable() {
|
||||
public void run() {
|
||||
try {
|
||||
for (Object next : foos()) {
|
||||
if (next != null) {
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Throwable th) {
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user