code: @Deprecated
      public LogRotator getLogRotator() {
          BuildDiscarder buildDiscarder = getBuildDiscarder();
          return buildDiscarder instanceof LogRotator ? (LogRotator) buildDiscarder : null;
      }
docs: Left for backward compatibility. Returns non-null if and only
  if {@link LogRotator} is configured as {@link BuildDiscarder}.
  
  @deprecated as of 1.503
  Use {@link #getBuildDiscarder()}.