mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 20:39:40 +07:00
chained methods calls: prefer variables and getters as qualifiers
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
class Foo {
|
||||
|
||||
}
|
||||
|
||||
class Bar {
|
||||
Foo getFoo() {}
|
||||
}
|
||||
|
||||
class Main {
|
||||
{
|
||||
Bar localBar = bar;
|
||||
Foo f = <caret>
|
||||
}
|
||||
|
||||
Bar bar;
|
||||
Bar getBar() { return bar; }
|
||||
Bar findBar() { return getBar(); }
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user