mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
new inference: do not cache control flow during conflict resolution (IDEA-130226)
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
class Test {
|
||||
{
|
||||
queryForObject(
|
||||
(rs) -> {
|
||||
try {
|
||||
return readValue(rs);
|
||||
} catch (IOException e) {
|
||||
return new UserOptions();
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
UserOptions readValue(String content) throws IOException {
|
||||
System.out.println(content);
|
||||
return null;
|
||||
}
|
||||
|
||||
UserOptions readValue(Integer i) throws IOException {
|
||||
System.out.println(i);
|
||||
return null;
|
||||
}
|
||||
|
||||
void queryForObject(Mapper rowMapper) {
|
||||
System.out.println(rowMapper);
|
||||
}
|
||||
|
||||
void queryForObject(String requiredType) {
|
||||
System.out.println(requiredType);
|
||||
}
|
||||
|
||||
interface Mapper {
|
||||
UserOptions mapRow(String rs) throws IOException;
|
||||
}
|
||||
|
||||
class UserOptions {}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user