code: /*
  MissingOverride
  javaFiveCompatibility = (default)false
  
  
  */
  
  package com.puppycrawl.tools.checkstyle.checks.annotation.missingoverride;
  
  public class InputMissingOverrideGoodOverride
  {
      Runnable r = new Runnable() {
  
          public void run() {
              Throwable t = new Throwable() {
  
                  /**
                   * {@inheritDoc}
                   */
                  @Override       // ok
                  public String toString() {
                      return "junk";
                  }
              };
          }
      };
  
      void doFoo(Runnable r) {
          doFoo(new Runnable() {
  
              public void run() {
                  Throwable t = new Throwable() {
  
                      /**
                       * {@inheritDoc}
                       */
                      @Override       // ok
                      public String toString() {
                          return "junk";
                      }
                  };
              }
          });
      }
  
      void doFoo2(Runnable r) {
          doFoo(new Runnable() {
  
              public void run() {
                  Throwable t = new Throwable() {
  
                      /**
                       * {@inheritDoc}
                       */
                      @java.lang.Override     // ok
                      public String toString() {
                          return "junk";
                      }
                  };
              }
          });
      }
  }
  