报告带有返回 this 或将其作为参数的方法的 EJB 类。

示例:


@Stateless
public class ExampleBean {
  private AnotherBean anotherBean;

  public ExampleBean setAnotherBean(AnotherBean anotherBean) {
    this.anotherBean = anotherBean;
    return this; // 错误:不应在此处返回 `this`
  }
}