1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00
sap-jenkins-library/src/com/sap/piper/API.groovy

24 lines
787 B
Groovy
Raw Normal View History

2019-01-23 11:16:11 +02:00
package com.sap.piper
2018-12-17 10:17:52 +02:00
2019-01-23 11:16:11 +02:00
import java.lang.annotation.ElementType
import java.lang.annotation.Retention
import java.lang.annotation.RetentionPolicy
import java.lang.annotation.Target
2018-12-17 10:17:52 +02:00
/**
* Methods or classes annotated with this annotation are used outside
* this shared, e.g. in other shared libraries. In case there is the
* need for changing this methods this should be clearly announced
* in order to get a consensus about the change and in order to allow
2019-01-23 10:48:21 +02:00
* users of the corresponding class/method to adapt to the change accordingly.
2018-12-17 10:17:52 +02:00
*/
@Retention(RetentionPolicy.RUNTIME)
2019-01-23 11:07:55 +02:00
@Target([ElementType.METHOD, ElementType.TYPE])
@interface API {
2019-01-23 11:16:11 +02:00
/**
* API marked as deprecated should not be used and moved to non-deprecated API.
*/
boolean deprecated() default false
2018-12-17 10:17:52 +02:00
}