Package 

Annotation Keep

  • All Implemented Interfaces:
    java.lang.annotation.Annotation

    @Retention(value = )@Target(value = {}) 
    public @interface Keep
    
                        

    Denotes that the annotated element should not be removed when the code is minified at build time. This is typically used on methods and classes that are accessed only via reflection so a compiler may think that the code is unused.

    Example:

     @Keep public void foo() { ... } 
    • Method Summary

      Modifier and Type Method Description
      • Methods inherited from class java.lang.annotation.Annotation

        annotationType, equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait