package org.robolectric.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;

/**
 * Robolectric can check for certain kinds of accessibility bugs while running
 * your tests. These are bugs that interfere with services that allow users with
 * disabilities to access your UI. When these checks are enabled, calling
 * {@code Robolectric.onClick()} will run a series of checks on your UI and
 * throw exceptions if errors are present.
 */
@java.lang.annotation.Documented
@java.lang.annotation.Retention(RetentionPolicy.RUNTIME)
@java.lang.annotation.Target({ElementType.TYPE, ElementType.METHOD})
public @interface AccessibilityChecks {
  public enum ForRobolectricVersion {
    /**
     * Only perform checks that were present in Robolectric 3.0
     */
    VERSION_3_0,
    /**
     * Perform all checks
     */
    LATEST
  }

  /**
   * Enable or disable accessibility checking. The default value is true.
   */
  boolean enabled() default true;

  /**
   * Accessibility checking can be a moving target. As new checks are added to
   * Robolectric, these checks may reveal issues with a UI that previously
   * passed all checks (but were probably affecting users all along). This
   * option forces Robolectric to run only those checks that were present in a
   * specified version of Robolectric, which reduces the opportunity for a
   * new bug to be discovered in an old test. Note that this option does not
   * guarantee that the behavior of individual checks won't change as bugs are
   * fixed and/or features added to checks that existed in the specified
   * version.
   * <p/>
   * The default is to perform all available checks.
   */
  ForRobolectricVersion forRobolectricVersion() default ForRobolectricVersion.LATEST;
}
@@ -58,27 +58,106 @@
 otation.
-ElementType
+Documented;%0Aimport java.lang.annotation.ElementType;%0Aimport java.lang.annotation.Retention
 ;%0Aimport
@@ -194,16 +194,52 @@
 nPolicy;
+%0Aimport java.lang.annotation.Target;
 %0A%0A/**%0A *
@@ -598,62 +598,20 @@
 */%0A@
-java.lang.annotation.Documented%0A@java.lang.annotation.
+Documented%0A@
 Rete
@@ -642,37 +642,16 @@
 NTIME)%0A@
-java.lang.annotation.
 Target(%7B
@@ -731,23 +731,16 @@
 cks %7B%0A  
-public 
 enum For
@@ -763,160 +763,28 @@
 on %7B
-%0A    /**%0A     * Only perform checks that were present in Robolectric 3.0%0A     */%0A    VERSION_3_0,%0A    /**%0A     * Perform all checks%0A     */%0A   
+ VERSION_3_0,
  LATEST
-%0A 
  %7D%0A%0A
@@ -839,34 +839,69 @@
 ing.
- The default value is true
+%0A   *%0A   * @return  True if accessibility checking is enabled
 .%0A  
@@ -1579,65 +1579,82 @@
    *
- %3Cp/%3E
 %0A   * 
-The default is to perform all available checks
+@return  Run all checks corresponding to this version of Robolectric
 .%0A  

Fix Java 8 doclet issues.