mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
25 lines
370 B
Java
25 lines
370 B
Java
// "Bring 'Resource r' into scope" "false"
|
|
class IDEA121153 {
|
|
String foo()
|
|
{
|
|
try (Resource r = getResource()) {
|
|
}
|
|
return <caret>r.get();
|
|
}
|
|
|
|
public Resource getResource() {
|
|
return new Resource();
|
|
}
|
|
|
|
class Resource implements AutoCloseable{
|
|
|
|
@Override
|
|
public void close() {
|
|
|
|
}
|
|
|
|
public String get() {
|
|
return "";
|
|
}
|
|
}
|
|
} |