Consider this Java class:
package test44;
public class MyBean {
private String foo;
public String getFoo() {
return foo;
}
public void setFoo(String foo) {
this.foo = foo;
}
}
and this Groovy class:
package test44
class Test44 {
void doSomething() {
def b = new MyBean()
b.with {
foo = 'foo'
}
}
}
Now either:
- invoke Call Hierarchy for
test44.MyBean.setFoo(String)
- search for References to
test44.MyBean.setFoo(String)
- rename
test44.MyBean.setFoo(String) to something else
In all cases, the reference in test44.Test44.doSomething() is not found. In case 3., the result of the refactoring is invalid code.
Consider this Java class:
and this Groovy class:
Now either:
test44.MyBean.setFoo(String)test44.MyBean.setFoo(String)test44.MyBean.setFoo(String)to something elseIn all cases, the reference in
test44.Test44.doSomething()is not found. In case 3., the result of the refactoring is invalid code.