mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 10:51:25 +07:00
infer Boolean in if(runReadAction(new Computab<caret>)){}
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
interface Computable<T> {
|
||||
T compute();
|
||||
}
|
||||
|
||||
public class Zoo2 {
|
||||
<T> T run(Computable<T> computable) {
|
||||
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
if (run(new Computable<Boolean>() {
|
||||
@Override
|
||||
public Boolean compute() {
|
||||
<selection>return null; //To change body of implemented methods use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}))
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
interface Computable<T> {
|
||||
T compute();
|
||||
}
|
||||
|
||||
public class Zoo2 {
|
||||
<T> T run(Computable<T> computable) {
|
||||
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
if (run(new <caret>))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user