code: /*
  MissingOverride
  javaFiveCompatibility = (default)false
  
  
  */
  
  package com.puppycrawl.tools.checkstyle.checks.annotation.missingoverride;
  
  import java.io.Serializable;
  
  public class InputMissingOverrideBadOverrideFromOther implements IFoo2
  {
    /**
     * {@inheritDoc}
     */
    public void doFoo() {} // violation 'include @java.lang.Override annotation when '@inheritDoc''
  
    public void doFoo2() {}
  
  }
  
  interface IFoo2 {
  
    void doFoo();
  }
  
  interface IBar2 extends IFoo2 {
  
    /**
     * {@inheritDoc}
     */
    public void doFoo(); // violation 'include @java.lang.Override annotation when '@inheritDoc''
  }
  
  class MoreJunk2 extends InputMissingOverrideBadOverrideFromOther {
  
    /**
     * {@inheritDoc}
     */
    public void doFoo() {} // violation 'include @java.lang.Override annotation when '@inheritDoc''
  
    /**
     * {@inheritDoc}
     */
    public void doFoo2() {} // violation 'include @java.lang.Override annotation when '@inheritDoc''
  
    class EvenMoreJunk extends MoreJunk2 implements Serializable {
  
      /**
       * {@inheritDoc}
       */
      public void doFoo() {} // violation 'include @java.lang.Override annotation when '@inheritDoc''
  
      /**
       * {@inheritDoc}
       */
      public void doFoo2() {} // violation 'include @java.lang.Override annotation when '@inheritDoc''
    }
  }
  
  enum Football2 implements IFoo2, IBar2 {
    Detroit_Lions;
  
    /**
     * {@inheritDoc}
     */
    public void doFoo() {} // violation 'include @java.lang.Override annotation when '@inheritDoc''
  
    /**
     * {@inheritDoc}
     */
    void some() {} // violation 'include @java.lang.Override annotation when '@inheritDoc''
  
    /* some block comment */
    /**
     * @param a desc {@inheritDoc}
     */
    void above(int a) {} // violation 'include @java.lang.Override annotation when '@inheritDoc''
  
    /**
     * @param a desc {@inheritDoc}
     */
    /* some block comment */
    void below() {} // violation 'include @java.lang.Override annotation when '@inheritDoc''
  
  
    /**
     * @param a desc {@inheritDoc}
     */
    /** some block comment */
    void doubled() {} // ok because top javadoc has invalid position
  }
  