All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cloudbees.groovy.cps.NonCPS Maven / Gradle / Ivy

package com.cloudbees.groovy.cps;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * Exclude a marked method from CPS transformation.
 *
 * Useful for performance sensitive code or where you need to call into libraries and pass in closures
 * that cannot be CPS-transformed.
 *
 * @author Kohsuke Kawaguchi
 */
@Target(METHOD)
@Retention(RUNTIME)
public @interface NonCPS {
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy