mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
IDEA-113339 "replace with method reference" ignores side effect of expression: ignore any new expressions in qualifiers
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// "Replace with method reference" "false"
|
||||
class Test {
|
||||
public interface I {
|
||||
String m();
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
I<String> supplier = () -> new Ob<caret>ject().toString();
|
||||
|
||||
System.out.println(supplier.get());
|
||||
System.out.println(supplier.get());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user