Top Description Methods
com.google.errorprone.annotations

public @Interface NoAllocation

extends Annotation
Annotations
@Documented
@Target:METHOD
Static Imports
java.lang.annotation.ElementType.METHOD

Annotation for method declarations, which denotes that this method will not cause allocations that are visible from source code. Compilers or runtimes can still introduce opportunities for allocation to occur that might result in garbage collection.

Be careful using this annotation. It should be used sparingly, typically only for methods called within inner loops or user interface event handlers. Misuse will likely lead to decreased performance and significantly more complex code.

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString