mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
[java] create method reference from usage: prefer non-static methods (IDEA-278074)
GitOrigin-RevId: 84e0fd64f0697df44cbaf6a7b8174fcd42ece504
This commit is contained in:
committed by
intellij-monorepo-bot
parent
bbc9f06505
commit
d19e2011be
@@ -0,0 +1,14 @@
|
||||
// "Create method 'fooBar'" "true"
|
||||
interface I {
|
||||
String str(Container c);
|
||||
}
|
||||
class FooBar {
|
||||
{
|
||||
I i = Container::fooBar;
|
||||
}
|
||||
}
|
||||
class Container{
|
||||
public String fooBar() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Create method 'fooBar'" "true"
|
||||
interface I {
|
||||
String str(Container c);
|
||||
}
|
||||
class FooBar {
|
||||
{
|
||||
I i = Container::foo<caret>Bar;
|
||||
}
|
||||
}
|
||||
class Container{}
|
||||
Reference in New Issue
Block a user