Annotation Type NoAllocation

public @interface NoAllocation
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.