Annotation Type CheckOptimizedOut


  • @Target({TYPE,FIELD,METHOD,CONSTRUCTOR})
    @Retention(CLASS)
    public @interface CheckOptimizedOut
    Mark that an item must be optimized out of the residual program.

    An item is optimized out if its declaration is no longer present in the residual program. This can happen due to many distinct optimizations. For example, it may be dead code and removed by the usual shrinking. The item's declaration may also be removed if it could be inlined at all usages, in which case the output may still contain a value if it was a field, or instructions if it was a method.

    CAUTION: Because of the dependency on shrinker internal optimizations and details such as inlining vs merging, the use of this annotation is somewhat unreliable and should be used with caution. In most cases it is more appropriate to use CheckRemoved.

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String description  
    • Element Detail

      • description

        java.lang.String description
        Default:
        ""