하위 클래스 중 하나에 대한 참조를 포함하는 클래스를 보고합니다. 이러한 참조는 혼란을 유발하며 객체 지향 설계의 여러 규칙에 위배될 수 있습니다.

예:


  class Entity {
    // Warning: the class references its subclass
    void compare(SimpleEntity entity) {
      ...
    }
  }
  class SimpleEntity extends Entity {
    ...
  }