<bean> 要素の <0>autowire 属性を報告し、可能であれば Bean プロパティを直接注入することを提案します。

例:


  public class MyComponent {
    public void setOtherBean(OtherBean bean){...}
  }

  <beans>
    <bean class="beans.OtherBean" id="bar"/>
    <bean autowire="byType" class="beans.MyComponent"/>
    <!-- "不要な Autowired 依存関係" は -->
    <!-- "Autowired 依存関係を明示的にする" を提案します -->
  </beans>

クイックフィックス適用後:


  <beans>
    <bean class="beans.OtherBean" id="bar"/>
    <bean class="beans.MyComponent" id="foo">
      <property name="otherBean" ref="otherBean"/>
    </bean>
  </beans>