最佳答案
在方法调用中传递当前对象是好的/坏的/可接受的做法吗:
public class Bar{
public Bar(){}
public void foo(Baz baz){
// modify some values of baz
}
}
public class Baz{
//constructor omitted
public void method(){
Bar bar = new Bar();
bar.foo(this);
}
}
具体来说,bar.foo(this)行可以接受吗?